Commit | Line | Data |
---|---|---|
58cde26e | 1 | #!/usr/bin/perl -w |
748a9306 | 2 | |
58cde26e | 3 | use Test; |
abcfbf51 | 4 | use strict; |
58cde26e | 5 | |
abcfbf51 | 6 | BEGIN |
58cde26e | 7 | { |
abcfbf51 | 8 | $| = 1; |
9 | unshift @INC, '../lib'; # for running manually | |
10 | my $location = $0; $location =~ s/bigintpm.t//; | |
11 | unshift @INC, $location; # to locate the testing files | |
027dc388 | 12 | chdir 't' if -d 't'; |
394e6ffb | 13 | plan tests => 1865; |
58cde26e | 14 | } |
15 | ||
748a9306 | 16 | use Math::BigInt; |
58cde26e | 17 | |
394e6ffb | 18 | use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup $CL); |
abcfbf51 | 19 | $class = "Math::BigInt"; |
394e6ffb | 20 | $CL = "Math::BigInt::Calc"; |
58cde26e | 21 | |
abcfbf51 | 22 | require 'bigintpm.inc'; # all tests here for sharing |