diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-21 20:02:27 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-21 20:02:27 +0000 |
commit | b3abae2aec672e5343915a64fe25c941cfd52764 (patch) | |
tree | 92e62933f9113093137a84ddde90397fe9b36640 /lib/Math/BigInt/t/upgrade.t | |
parent | 24520e9dce27cd3bbc70dc9e62923d7280f96457 (diff) | |
download | perl-b3abae2aec672e5343915a64fe25c941cfd52764.tar.gz |
Upgrade to Math::BigInt 1.51.
p4raw-id: //depot/perl@14817
Diffstat (limited to 'lib/Math/BigInt/t/upgrade.t')
-rw-r--r-- | lib/Math/BigInt/t/upgrade.t | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/Math/BigInt/t/upgrade.t b/lib/Math/BigInt/t/upgrade.t new file mode 100644 index 0000000000..297d526845 --- /dev/null +++ b/lib/Math/BigInt/t/upgrade.t @@ -0,0 +1,42 @@ +#!/usr/bin/perl -w + +use Test; +use strict; + +BEGIN + { + $| = 1; + # to locate the testing files + my $location = $0; $location =~ s/upgrade.t//i; + if ($ENV{PERL_CORE}) + { + @INC = qw(../t/lib); # testing with the core distribution + } + 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 => 1991; + } + +use Math::BigInt upgrade => 'Math::BigFloat'; +use Math::BigFloat; + +use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup + $ECL $CL); +$class = "Math::BigInt"; +$CL = "Math::BigInt::Calc"; +$ECL = "Math::BigFloat"; + +ok (Math::BigInt->upgrade(),'Math::BigFloat'); + +require 'upgrade.inc'; # all tests here for sharing |