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