X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fcomplex.t;h=334374d5193660c24a011a42c6c6bbe8a2c09ff0;hb=22d4bb9ccb8701e68f9243547d7e3a3c55f70908;hp=b659142af97ee3150450e29faa65c827bc238f7e;hpb=4b19af017623bfa3bb72bb164598a517f586e0d3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/lib/complex.t b/t/lib/complex.t index b659142..334374d 100755 --- a/t/lib/complex.t +++ b/t/lib/complex.t @@ -9,12 +9,14 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; } use Math::Complex; -my $VERSION = sprintf("%s", q$Id: complex.t,v 1.9 1998/11/01 00:00:00 dsl Exp $ =~ /(\d+\.d+)/); +use vars qw($VERSION); + +$VERSION = 1.91; my ($args, $op, $target, $test, $test_set, $try, $val, $zvalue, @set, @val); @@ -194,6 +196,13 @@ EOT test_broot(qw(-3 -2.1 0 0.99)); sub test_display_format { + $test++; + push @script, <display_format eq 'cartesian'; + print "ok $test\n"; +EOS + push @script, <display_format eq 'polar'; print "ok $test\n"; EOS @@ -276,12 +285,20 @@ EOS \$j->display_format('style' => 'cartesian', 'format' => '(%.5g)'); EOS + $test++; push @script, <display_format eq 'cartesian'; + print "ok $test\n"; +EOS } test_display_format();