my $location = $0; $location =~ s/upgrade.t//i;
if ($ENV{PERL_CORE})
{
- @INC = qw(../t/lib); # testing with the core distribution
+ # testing with the core distribution
+ @INC = qw(../t/lib);
}
- unshift @INC, '../lib'; # for testing manually
+ unshift @INC, qw(../lib); # to locate the modules
if (-d 't')
{
chdir 't';
}
print "# INC = @INC\n";
- plan tests => 1991;
+ plan tests => 2098
+ + 2; # our own tests
}
use Math::BigInt upgrade => 'Math::BigFloat';
$ECL = "Math::BigFloat";
ok (Math::BigInt->upgrade(),'Math::BigFloat');
+ok (Math::BigInt->downgrade()||'','');
require 'upgrade.inc'; # all tests here for sharing