9 # to locate the testing files
10 my $location = $0; $location =~ s/upgrade.t//i;
13 @INC = qw(../t/lib); # testing with the core distribution
15 unshift @INC, '../lib'; # for testing manually
20 unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
24 unshift @INC, $location;
26 print "# INC = @INC\n";
31 use Math::BigInt upgrade => 'Math::BigFloat';
34 use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup
36 $class = "Math::BigInt";
37 $CL = "Math::BigInt::Calc";
38 $ECL = "Math::BigFloat";
40 ok (Math::BigInt->upgrade(),'Math::BigFloat');
42 require 'upgrade.inc'; # all tests here for sharing