Subject: | Pie.t failes |
The Tests in t/Pie.t fails with perl 5.12.
The issue can be seen in several reports at cpantesters, including this
one:
http://www.cpantesters.org/cpan/report/9ed1898c-77de-11e0-9d9a-2e1d0aeb0474
The test failes due to a missing parameter for Chart::OFC->new().
I have attached a little patch which solves the problem.
kind regards, LukasT
Subject: | chart-ofc_pie-test.patch |
--- Chart-OFC-0.09/t/Pie.t 2009-07-02 15:34:37.000000002 +0200
+++ Chart-OFC-0.09-patched/t/Pie.t 2011-05-17 16:10:11.000000002 +0200
@@ -7,10 +7,10 @@
use Chart::OFC::Pie;
{
- eval { Chart::OFC::Pie->new() };
+ my $set = Chart::OFC::Dataset->new( values => [ 1..10 ] );
+ eval { Chart::OFC::Pie->new(dataset => $set) };
like( $@, qr/\Q(labels) is required/, 'labels is required for constructor' );
- my $set = Chart::OFC::Dataset->new( values => [ 1..10 ] );
eval { Chart::OFC::Pie->new( dataset => $set, labels => [ 'a'..'j' ], slice_colors => [] ) };
like( $@, qr/\Qpass the type constraint/,