3 # check that requiring BigFloat and then calling import() works
11 # to locate the testing files
12 my $location = $0; $location =~ s/req_mbfw.t//i;
15 # testing with the core distribution
18 unshift @INC, qw(../lib); # to locate the modules
23 unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
27 unshift @INC, $location;
29 print "# INC = @INC\n";
34 # normal require that calls import automatically (we thus have MBI afterwards)
35 require Math::BigFloat;
36 my $x = Math::BigFloat->new(1); ++$x;
39 like (Math::BigFloat->config()->{with}, qr/^Math::BigInt::(Fast)?Calc\z/, 'with ignored' );
42 Math::BigFloat->import ( with => 'Math::BigInt::Subclass' );
44 # the "with" argument is ignored
45 like (Math::BigFloat->config()->{with}, qr/^Math::BigInt::(Fast)?Calc\z/, 'with ignored' );