Commit | Line | Data |
---|---|---|
126f3c5f | 1 | #!/usr/bin/perl -w |
2 | ||
b68b7ab1 | 3 | use Test::More; |
126f3c5f | 4 | use strict; |
5 | ||
6 | BEGIN | |
7 | { | |
8 | $| = 1; | |
9 | chdir 't' if -d 't'; | |
10 | unshift @INC, '../lib'; | |
b68b7ab1 | 11 | plan tests => 4; |
126f3c5f | 12 | } |
13 | ||
b68b7ab1 | 14 | my @C = qw/Math::BigInt Math::BigFloat/; |
15 | ||
126f3c5f | 16 | use bignum p => '12'; |
17 | ||
b68b7ab1 | 18 | foreach my $c (@C) |
19 | { | |
20 | is ($c->precision(),12, "$c precision = 12"); | |
21 | } | |
22 | ||
23 | bignum->import( p => '42' ); | |
24 | ||
25 | foreach my $c (@C) | |
26 | { | |
27 | is ($c->precision(),42, "$c precision = 42"); | |
28 | } | |
126f3c5f | 29 |