3 # check that requiring BigFloat and then calling import() works
6 use Test::More tests => 3;
8 BEGIN { unshift @INC, 't'; }
10 # normal require that calls import automatically (we thus have MBI afterwards)
11 require Math::BigFloat;
12 my $x = Math::BigFloat->new(1); ++$x;
15 like (Math::BigFloat->config()->{with}, qr/^Math::BigInt::(Fast)?Calc\z/, 'with ignored' );
18 Math::BigFloat->import ( with => 'Math::BigInt::Subclass' );
20 # the "with" argument is ignored
21 like (Math::BigFloat->config()->{with}, qr/^Math::BigInt::(Fast)?Calc\z/, 'with ignored' );