summaryrefslogtreecommitdiff
path: root/ext/bignum/t/option_a.t
diff options
context:
space:
mode:
authorChris Williams <chris@bingosnet.co.uk>2009-09-10 21:30:20 +0100
committerChris Williams <chris@bingosnet.co.uk>2009-09-10 21:30:20 +0100
commita3bef8ed8dece3b48e9e11993f255fbe719a0647 (patch)
treea1c54009ef1eb097495c49c44bb8b4133a93c5aa /ext/bignum/t/option_a.t
parent5711376d83710d8f98ce1dc447317524afb70055 (diff)
downloadperl-a3bef8ed8dece3b48e9e11993f255fbe719a0647.tar.gz
Moved bignum from lib/ to ext/
Diffstat (limited to 'ext/bignum/t/option_a.t')
-rw-r--r--ext/bignum/t/option_a.t31
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/bignum/t/option_a.t b/ext/bignum/t/option_a.t
new file mode 100644
index 0000000000..2086f9a8d8
--- /dev/null
+++ b/ext/bignum/t/option_a.t
@@ -0,0 +1,31 @@
+#!/usr/bin/perl -w
+
+###############################################################################
+
+use Test::More;
+use strict;
+
+BEGIN
+ {
+ $| = 1;
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+ plan tests => 4;
+ }
+
+use bignum a => '12';
+
+my @C = qw/Math::BigInt Math::BigFloat/;
+
+foreach my $c (@C)
+ {
+ is ($c->accuracy(),12, "$c accuracy = 12");
+ }
+
+bignum->import( accuracy => '23');
+
+foreach my $c (@C)
+ {
+ is ($c->accuracy(), 23, "$c accuracy = 23");
+ }
+