diff options
Diffstat (limited to 'ext/bignum/t/option_a.t')
-rw-r--r-- | ext/bignum/t/option_a.t | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/bignum/t/option_a.t b/ext/bignum/t/option_a.t new file mode 100644 index 0000000000..2086f9a8d8 --- /dev/null +++ b/ext/bignum/t/option_a.t @@ -0,0 +1,31 @@ +#!/usr/bin/perl -w + +############################################################################### + +use Test::More; +use strict; + +BEGIN + { + $| = 1; + chdir 't' if -d 't'; + unshift @INC, '../lib'; + plan tests => 4; + } + +use bignum a => '12'; + +my @C = qw/Math::BigInt Math::BigFloat/; + +foreach my $c (@C) + { + is ($c->accuracy(),12, "$c accuracy = 12"); + } + +bignum->import( accuracy => '23'); + +foreach my $c (@C) + { + is ($c->accuracy(), 23, "$c accuracy = 23"); + } + |