fix the test count for t14bar.t and relax the image comparisons a bit
authorTony Cook <tony@develop-help.com>
Tue, 3 Nov 2009 11:21:54 +0000 (11:21 +0000)
committerTony Cook <tony@develop-help.com>
Tue, 3 Nov 2009 11:21:54 +0000 (11:21 +0000)
t/t14bar.t
t/t31tic_color.t
t/t33_long_labels.t

index ed3085157dd3cc346e390fd0fd438da479c9677e..ef8cbc052639117c15d350d482c7c4393d7bec6d 100644 (file)
@@ -13,7 +13,7 @@ use Test::More;
 
 use Imager qw(:handy);
 
-plan tests => 3;
+plan tests => 4;
 
 my @warned;
 local $SIG{__WARN__} =
index a0d0c3f4883e62f64eb4504f320da51636f0016e..8ae6022a48630458d78f330e59ebe648266de507 100644 (file)
@@ -48,10 +48,10 @@ $img1->write(file=>'testout/t31tic_color.ppm') or die "Can't save img1: ".$img1-
 
 eval { require Chart::Math::Axis; };
 if ($@) {
-    cmpimg($img1, 'testimg/t31tic_color.ppm', 1);
+    cmpimg($img1, 'testimg/t31tic_color.ppm', 100);
 }
 else {
-    cmpimg($img1, 'testimg/t31tic_color_CMA.ppm', 1);
+    cmpimg($img1, 'testimg/t31tic_color_CMA.ppm', 100);
 }
 
 unless (is(@warned, 0, "should be no warnings")) {
index 09dc7cf2346eccbcd387608e2323860712f3e553..0c447171d710065c77cddf92ef7fd64b65817415 100644 (file)
@@ -36,8 +36,8 @@ $graph->set_labels(['AWWWWWWWWWWWWWWA', 'AWWWWWWWWWWWWWWWWWWWWWWWWWWWWWA']);
 
 my $img = $graph->draw() || warn $graph->error;
 
+cmpimg($img, 'testimg/t33_long_labels.ppm', 200);
 $img->write(file=>'testout/t33_long_labels.ppm') or die "Can't save img1: ".$img->errstr."\n";
-cmpimg($img, 'testimg/t33_long_labels.ppm', 1);
 
 unless (is(@warned, 0, "should be no warnings")) {
   diag($_) for @warned;