X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMath%2FComplex.t;h=555d5b5b31b698b8ab4d753a6445fa1776dc608e;hb=21235083834316f367c5d1108a28d49dda550bb7;hp=334374d5193660c24a011a42c6c6bbe8a2c09ff0;hpb=b695f709e8a342e35e482b0437eb6cdacdc58b6b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Math/Complex.t b/lib/Math/Complex.t index 334374d..555d5b5 100755 --- a/lib/Math/Complex.t +++ b/lib/Math/Complex.t @@ -16,7 +16,7 @@ use Math::Complex; use vars qw($VERSION); -$VERSION = 1.91; +$VERSION = 1.92; my ($args, $op, $target, $test, $test_set, $try, $val, $zvalue, @set, @val); @@ -303,6 +303,42 @@ EOS test_display_format(); +sub test_remake { + $test++; + push @script, <make(2,3); + print "ok $test\n"; +EOS + + $test++; + push @script, <make('3i'); + print "not " unless \$z == cplx(0,3); + print "ok $test\n"; +EOS + + $test++; + push @script, <emake(2,3); + print "ok $test\n"; +EOS + + $test++; + push @script, <emake('[2]'); + print "not " unless \$z == cplxe(2); + print "ok $test\n"; +EOS +} + +test_remake(); + print "1..$test\n"; eval join '', @script; die $@ if $@;