diff options
Diffstat (limited to 'lib/Math/BigInt/t/use_lib1.t')
-rw-r--r-- | lib/Math/BigInt/t/use_lib1.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/Math/BigInt/t/use_lib1.t b/lib/Math/BigInt/t/use_lib1.t new file mode 100644 index 0000000000..d737081a57 --- /dev/null +++ b/lib/Math/BigInt/t/use_lib1.t @@ -0,0 +1,24 @@ +#!/usr/bin/perl -w + +# see if using Math::BigInt and Math::BigFloat works together nicely. +# all use_lib*.t should be equivalent + +use strict; +use Test; + +BEGIN + { + $| = 1; + chdir 't' if -d 't'; + unshift @INC, '../lib'; # for running manually + unshift @INC, 'lib'; + print "# INC = @INC\n"; + plan tests => 2; + } + +use Math::BigFloat lib => 'BareCalc'; + +ok (Math::BigInt->config()->{lib},'Math::BigInt::BareCalc'); + +ok (Math::BigFloat->new(123)->badd(123),246); + |