This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update bignum to CPAN version 0.65
[perl5.git] / cpan / bignum / t / option_a-bignum.t
diff --git a/cpan/bignum/t/option_a-bignum.t b/cpan/bignum/t/option_a-bignum.t
new file mode 100644 (file)
index 0000000..429bad3
--- /dev/null
@@ -0,0 +1,18 @@
+# -*- mode: perl; -*-
+
+use strict;
+use warnings;
+
+use Test::More tests => 4;
+
+{
+    use bignum a => "12";
+    for my $class ("Math::BigInt", "Math::BigFloat") {
+        cmp_ok($class -> accuracy(), "==", 12, "$class accuracy = 12");
+    }
+
+    bignum -> import(accuracy => "23");
+    for my $class ("Math::BigInt", "Math::BigFloat") {
+        cmp_ok($class -> accuracy(), "==", 23, "$class accuracy = 23");
+    }
+}