summaryrefslogtreecommitdiff
path: root/cpan/Math-BigInt/t/calling-lib2.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Math-BigInt/t/calling-lib2.t')
-rw-r--r--cpan/Math-BigInt/t/calling-lib2.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpan/Math-BigInt/t/calling-lib2.t b/cpan/Math-BigInt/t/calling-lib2.t
new file mode 100644
index 0000000000..1d8a5dde31
--- /dev/null
+++ b/cpan/Math-BigInt/t/calling-lib2.t
@@ -0,0 +1,18 @@
+# -*- mode: perl; -*-
+
+use strict;
+use warnings;
+use lib 't';
+
+use Test::More tests => 1;
+
+my ($x, $expected, $try);
+
+my $class = 'Math::BigInt';
+
+# test whether Math::BigInt::Scalar via use works (w/ dff. spellings of calc)
+
+$try = qq|use $class 0, "lib" => "$class\::Scalar";|
+ . q| $x = 2**10; $x = "$x";|;
+$expected = eval $try;
+is($expected, "1024", $try);