summaryrefslogtreecommitdiff
path: root/dist/bignum/t/option_a.t
blob: 1f135626ccd40deba2017fe4fcaac371a5745c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl -w

###############################################################################

use strict;
use Test::More 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");
  }