test case for change#3470
authorGurusamy Sarathy <gsar@cpan.org>
Tue, 25 May 1999 08:39:56 +0000 (08:39 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Tue, 25 May 1999 08:39:56 +0000 (08:39 +0000)
p4raw-link: @3470 on //depot/perl: e094bb4e86c3cb9e46442b6003185dc746deb691

p4raw-id: //depot/perl@3474

t/lib/bigintpm.t

index f2e9d51..ae362e2 100755 (executable)
@@ -9,7 +9,7 @@ use Math::BigInt;
 
 $test = 0;
 $| = 1;
-print "1..276\n";
+print "1..278\n";
 while (<DATA>) {
        chop;
        if (s/^&//) {
@@ -64,7 +64,24 @@ while (<DATA>) {
                        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