|
#!/usr/bin/perl -w
BEGIN
{
$| = 1;
my $location = $0; $location =~ s/sub_mbf.t//i;
if ( $ENV {PERL_CORE})
{
@INC = qw(../t/lib) ;
}
unshift @INC , '../lib' ;
if (-d 't' )
{
chdir 't' ;
unshift @INC , File::Spec->catdir(File::Spec->updir, $location );
}
else
{
unshift @INC , $location ;
}
print "# INC = @INC\n" ;
plan tests => 2;
}
is (Math::BigFloat::config()->{lib}, 'Math::BigInt::Calc' , 'BigFloat got Calc' );
Math::BigInt-> import ( lib => 'BareCalc' );
is (Math::BigFloat::config()->{lib}, 'Math::BigInt::BareCalc' , 'BigFloat was notified' );
|