Skip Menu |

This queue is for tickets about the Parse-CPAN-Meta CPAN distribution.

Report information
The Basics
Id: 45164
Status: resolved
Priority: 0/
Queue: Parse-CPAN-Meta

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] Broken test on perl 5.8.0: 15_multibyte.t
Perl 5.8.0 does not have the function utf8::is_utf8(), but Parse::CPAN::Meta::HAVE_UTF8 checks only that Perl is higher than 5.7.3. This check is OK, but a test is failing because it uses is_utf8. So the following test of t/15_multibyte.t does not pass: SKIP: { skip "no utf8 support", 1 unless Parse::CPAN::Meta::HAVE_UTF8(); ok( utf8::is_utf8($yaml[0]->{author}), "utf8 decoded" ); } [FIX] Replace the code with the following lines: SKIP: { skip "no utf8 support", 1 unless Parse::CPAN::Meta::HAVE_UTF8(); is( length($yaml[0]->{author}), 39, "utf8 decoded" ); }
This test file is no longer included in Parse::CPAN::Meta (and is addressed upstream in YAML::Tiny as well)