summaryrefslogtreecommitdiff
path: root/dist/Math-BigInt/t/sub_mif.t
diff options
context:
space:
mode:
Diffstat (limited to 'dist/Math-BigInt/t/sub_mif.t')
-rw-r--r--dist/Math-BigInt/t/sub_mif.t39
1 files changed, 39 insertions, 0 deletions
diff --git a/dist/Math-BigInt/t/sub_mif.t b/dist/Math-BigInt/t/sub_mif.t
new file mode 100644
index 0000000000..14d041b3da
--- /dev/null
+++ b/dist/Math-BigInt/t/sub_mif.t
@@ -0,0 +1,39 @@
+#!/usr/bin/perl -w
+
+# test rounding, accuracy, precicion and fallback, round_mode and mixing
+# of classes
+
+use strict;
+use Test;
+
+BEGIN
+ {
+ $| = 1;
+ # to locate the testing files
+ my $location = $0; $location =~ s/sub_mif.t//i;
+ unshift @INC, '../lib'; # for testing manually
+ if (-d 't')
+ {
+ chdir 't';
+ require File::Spec;
+ unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
+ }
+ else
+ {
+ unshift @INC, $location;
+ }
+ print "# INC = @INC\n";
+
+ plan tests => 684;
+ }
+
+use Math::BigInt::Subclass;
+use Math::BigFloat::Subclass;
+
+use vars qw/$mbi $mbf/;
+
+$mbi = 'Math::BigInt::Subclass';
+$mbf = 'Math::BigFloat::Subclass';
+
+require 'mbimbf.inc';
+