|
#!/usr/bin/perl -w
BEGIN
{
$| = 1;
my $location = $0; $location =~ s/req_mbfw.t//i;
if ( $ENV {PERL_CORE})
{
@INC = qw(../t/lib) ;
}
unshift @INC , qw(../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 => 3;
}
my $x = Math::BigFloat->new(1); ++ $x ;
is ( $x ,2, '$x is 2' );
like (Math::BigFloat->config()->{ with }, qr/^Math::BigInt::(Fast)?Calc\z/ , 'with ignored' );
Math::BigFloat-> import ( with => 'Math::BigInt::Subclass' );
like (Math::BigFloat->config()->{ with }, qr/^Math::BigInt::(Fast)?Calc\z/ , 'with ignored' );
|