diff options
Diffstat (limited to 'lib/bignum/t/option_a.t')
-rwxr-xr-x | lib/bignum/t/option_a.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/bignum/t/option_a.t b/lib/bignum/t/option_a.t new file mode 100755 index 0000000000..2ab00bb074 --- /dev/null +++ b/lib/bignum/t/option_a.t @@ -0,0 +1,25 @@ +#!/usr/bin/perl -w + +############################################################################### + +use Test; +use strict; + +BEGIN + { + $| = 1; + chdir 't' if -d 't'; + unshift @INC, '../lib'; + plan tests => 4; + } + +use bignum a => '12'; + +ok (Math::BigInt->accuracy(),12); +ok (Math::BigFloat->accuracy(),12); + +bignum->import( accuracy => '23'); + +ok (Math::BigInt->accuracy(),23); +ok (Math::BigFloat->accuracy(),23); + |