summaryrefslogtreecommitdiff
path: root/lib/bignum/t/option_a.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-24 00:21:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-24 00:21:07 +0000
commit126f3c5f1f20a40de59db499161effaa9e24e4fc (patch)
treef398c631329fb22497450ce03163dfb3f91e36bf /lib/bignum/t/option_a.t
parent06fdd4fef0ae8dab353d3f94e41499b82adb1ae7 (diff)
downloadperl-126f3c5f1f20a40de59db499161effaa9e24e4fc.tar.gz
Merge bignum 0.10, from Tels.
p4raw-id: //depot/perl@15455
Diffstat (limited to 'lib/bignum/t/option_a.t')
-rwxr-xr-xlib/bignum/t/option_a.t25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/bignum/t/option_a.t b/lib/bignum/t/option_a.t
new file mode 100755
index 0000000000..2ab00bb074
--- /dev/null
+++ b/lib/bignum/t/option_a.t
@@ -0,0 +1,25 @@
+#!/usr/bin/perl -w
+
+###############################################################################
+
+use Test;
+use strict;
+
+BEGIN
+ {
+ $| = 1;
+ chdir 't' if -d 't';
+ unshift @INC, '../lib';
+ plan tests => 4;
+ }
+
+use bignum a => '12';
+
+ok (Math::BigInt->accuracy(),12);
+ok (Math::BigFloat->accuracy(),12);
+
+bignum->import( accuracy => '23');
+
+ok (Math::BigInt->accuracy(),23);
+ok (Math::BigFloat->accuracy(),23);
+