3 # see if using Math::BigInt and Math::BigFloat works together nicely.
4 # all use_lib*.t should be equivalent, except this, since the later overrides
5 # the former lib statement
13 # to locate the testing files
14 my $location = $0; $location =~ s/use_lib4.t//i;
17 # testing with the core distribution
20 unshift @INC, qw(../lib); # to locate the modules
25 unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
29 unshift @INC, $location;
31 print "# INC = @INC\n";
36 use Math::BigInt lib => 'BareCalc';
37 use Math::BigFloat lib => 'Calc';
39 ok (Math::BigInt->config()->{lib},'Math::BigInt::Calc');
41 ok (Math::BigFloat->new(123)->badd(123),246);