This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fbf8f055b905dbabce4b35b01a84d03bacd83c6d
[perl5.git] / lib / Math / BigInt / t / bare_mbf.t
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;
11   print "$0\n";
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
30   plan tests => 1627;
31   }
32
33 use Math::BigFloat lib => 'BareCalc';
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