Commit | Line | Data |
b3abae2a |
1 | #!/usr/bin/perl -w |
2 | |
3 | use Test; |
4 | use strict; |
5 | |
6 | BEGIN |
7 | { |
8 | $| = 1; |
9 | # to locate the testing files |
10 | my $location = $0; $location =~ s/bare_mbf.t//i; |
d614cd8b |
11 | print "$0\n"; |
b3abae2a |
12 | if ($ENV{PERL_CORE}) |
13 | { |
14 | # testing with the core distribution |
15 | @INC = qw(../t/lib); |
16 | } |
17 | unshift @INC, '../lib'; |
18 | if (-d 't') |
19 | { |
20 | chdir 't'; |
21 | require File::Spec; |
22 | unshift @INC, File::Spec->catdir(File::Spec->updir, $location); |
23 | } |
24 | else |
25 | { |
26 | unshift @INC, $location; |
27 | } |
28 | print "# INC = @INC\n"; |
29 | |
56b9c951 |
30 | plan tests => 1601; |
b3abae2a |
31 | } |
32 | |
56b9c951 |
33 | use Math::BigFloat lib => 'BareCalc'; |
b3abae2a |
34 | |
35 | use vars qw ($class $try $x $y $f @args $ans $ans1 $ans1_str $setup $CL); |
36 | $class = "Math::BigFloat"; |
37 | $CL = "Math::BigInt::BareCalc"; |
38 | |
39 | require 'bigfltpm.inc'; # all tests here for sharing |