blob: 0d18e87031c1ef89482b5abf09d03b41a0dc447b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/perl -w
###############################################################################
use strict;
use Test::More tests => 7;
my @C = qw/Math::BigInt Math::BigFloat Math::BigRat/;
# bigrat (bug until v0.15)
use bigrat a => 2;
foreach my $c (@C)
{
is ($c->accuracy(), 2, "$c accuracy = 2");
}
eval { bigrat->import( accuracy => '42') };
is ($@, '', 'no error');
foreach my $c (@C)
{
is ($c->accuracy(), 42, "$c accuracy = 42");
}
|