blob: 9a5ce7c061848786ecd4b8a2b1d6ce4dd201fee1 (
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
|
# -*- mode: perl; -*-
###############################################################################
use strict;
use warnings;
use Test::More tests => 3;
my @CLASSES = qw/Math::BigRat/;
# bigrat (bug until v0.15)
use bigrat a => 2;
foreach my $class (@CLASSES) {
is($class->accuracy(), 2, "$class accuracy = 2");
}
eval { bigrat->import(accuracy => '42') };
is($@, '', 'no error');
foreach my $class (@CLASSES) {
is($class->accuracy(), 42, "$class accuracy = 42");
}
|