Upgrade to PathTools-3.23.
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / option_p.t
CommitLineData
126f3c5f 1#!/usr/bin/perl -w
2
b68b7ab1 3use Test::More;
126f3c5f 4use strict;
5
6BEGIN
7 {
8 $| = 1;
9 chdir 't' if -d 't';
10 unshift @INC, '../lib';
b68b7ab1 11 plan tests => 4;
126f3c5f 12 }
13
b68b7ab1 14my @C = qw/Math::BigInt Math::BigFloat/;
15
126f3c5f 16use bignum p => '12';
17
b68b7ab1 18foreach my $c (@C)
19 {
20 is ($c->precision(),12, "$c precision = 12");
21 }
22
23bignum->import( p => '42' );
24
25foreach my $c (@C)
26 {
27 is ($c->precision(),42, "$c precision = 42");
28 }
126f3c5f 29