Renaming of some of Pod::Simple's test files to make it more 8.3
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / ratopt_a.t
CommitLineData
b68b7ab1 1#!/usr/bin/perl -w
2
3###############################################################################
4
5use Test::More;
6use strict;
7
8BEGIN
9 {
10 $| = 1;
11 chdir 't' if -d 't';
12 unshift @INC, '../lib';
13 plan tests => 7;
14 }
15
16my @C = qw/Math::BigInt Math::BigFloat Math::BigRat/;
17
18# bigrat (bug until v0.15)
19use bigrat a => 2;
20
21foreach my $c (@C)
22 {
23 is ($c->accuracy(), 2, "$c accuracy = 2");
24 }
25
26eval { bigrat->import( accuracy => '42') };
27
28is ($@, '', 'no error');
29
30foreach my $c (@C)
31 {
32 is ($c->accuracy(), 42, "$c accuracy = 42");
33 }
34