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; my $x = Math::BigFloat->new(1); ++$x; ok ($x,2);
37 ok (Math::BigFloat->config()->{with}, 'Math::BigInt::Calc' );
40 Math::BigFloat->import ( with => 'Math::BigInt::Subclass' );
42 # thw with argument is ignored
43 ok (Math::BigFloat->config()->{with}, 'Math::BigInt::Calc' );