]> git.imager.perl.org - imager.git/commitdiff
check Affix::Infix2Postfix is available before testing transform()
authorTony Cook <tony@develop-help.com>
Mon, 30 May 2011 11:45:19 +0000 (21:45 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 30 May 2011 11:46:36 +0000 (21:46 +1000)
t/t55trans.t

index 4f3ce361d360fe0fd2808dcae91c69f2bf1d3b20..ba1c6a0b968ea367428ecf8e25520323cda77afb 100644 (file)
@@ -1,8 +1,12 @@
 #!perl -w
 use strict;
-use Test::More tests => 7;
+use Test::More;
+use Imager;
 
-BEGIN { $| = 1; use_ok("Imager"); }
+eval "use Affix::Infix2Postfix; 1;"
+  or plan skip_all => "No Affix::Infix2Postfix";
+
+plan tests => 6;
 
 #$Imager::DEBUG=1;