blob: 2a9d17154d7bd86842322ed34b0b8255b48e23f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!perl
###############################################################################
use strict;
use warnings;
use Test::More tests => 4;
use bignum a => '12';
my @CLASSES = qw/Math::BigInt Math::BigFloat/;
foreach my $class (@CLASSES) {
is($class->accuracy(),12, "$class accuracy = 12");
}
bignum->import(accuracy => '23');
foreach my $class (@CLASSES) {
is($class->accuracy(), 23, "$class accuracy = 23");
}
|