Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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
Download (untitled) / with headers
text/plain 613b
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" ); }
Download (untitled) / with headers
text/plain 107b
This test file is no longer included in Parse::CPAN::Meta (and is addressed upstream in YAML::Tiny as well)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.