From: Gurusamy Sarathy Date: Tue, 25 May 1999 08:39:56 +0000 (+0000) Subject: test case for change#3470 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a99f88279527854d73f6b517b869d613f02be3d1;p=p5sagit%2Fp5-mst-13.2.git test case for change#3470 p4raw-link: @3470 on //depot/perl: e094bb4e86c3cb9e46442b6003185dc746deb691 p4raw-id: //depot/perl@3474 --- diff --git a/t/lib/bigintpm.t b/t/lib/bigintpm.t index f2e9d51..ae362e2 100755 --- a/t/lib/bigintpm.t +++ b/t/lib/bigintpm.t @@ -9,7 +9,7 @@ use Math::BigInt; $test = 0; $| = 1; -print "1..276\n"; +print "1..278\n"; while () { chop; if (s/^&//) { @@ -64,7 +64,24 @@ while () { print "# '$try' expected: '$ans' got: '$ans1'\n"; } } -} +} + +{ + use Math::BigInt ':constant'; + + $test++; + print "not " + unless 2**150 eq "+1427247692705959881058285969449495136382746624"; + print "ok $test\n"; + $test++; + @a = (); + for ($i = 1; $i < 10; $i++) { + push @a, $i; + } + print "not " unless "@a" eq "+1 +2 +3 +4 +5 +6 +7 +8 +9"; + print "ok $test\n"; +} + __END__ &bnorm abc:NaN