]> git.imager.perl.org - imager.git/blobdiff - t/t68map.t
updates
[imager.git] / t / t68map.t
index 4b39a6a1306380a9f62cae073687073212d156de..ce225c52b471c0e33244474bbffd0f0ab364f7fe 100644 (file)
@@ -1,4 +1,4 @@
-Imager::init(log=>'testout/t68map.log');
+Imager::init("log"=>'testout/t68map.log');
 
 use Imager qw(:all :handy);
 
@@ -16,13 +16,13 @@ my $imbase = Imager::ImgRaw::new(200,300,3);
 $tst = 1;
 
 i_map($imbase, [ [],     [],     \@map1 ]);
-print $tst++." ok\n";
+print "ok ".$tst++."\n";
 i_map($imbase, [ \@map1, \@map1, \@map1 ]);
 
-print $tst++." ok\n";
+print "ok ".$tst++."\n";
 i_map($imbase, [ \@map1, \@map2, \@map3 ]);
 
-print $tst++." ok\n";
+print "ok ".$tst++."\n";
 i_map($imbase, [ \@maps, \@mapl, \@map3 ]);
 
 # test the highlevel interface
@@ -31,8 +31,8 @@ i_map($imbase, [ \@maps, \@mapl, \@map3 ]);
 
 my $im = Imager->new;
 if ($im->read(file=>'testimg/scale.ppm')) {
-  print $tst++.( $im->map(r=>\@map1, g=>\@map2, b=>\@map3) ? " ok\n" : " not ok\n");
-  print $tst++.( $im->map(maps=>[\@map1, [], \@map2]) ? " ok\n" : " not ok\n");
+  print( ( $im->map(red=>\@map1, green=>\@map2, blue=>\@map3) ? "ok " : "not ok ").$tst++."\n" );
+  print( ( $im->map(maps=>[\@map1, [], \@map2]) ? "ok " : "not ok "). $tst++."\n");
 }
 else {
   die "could not load testout/scale.ppm\n";