Upgrade to Math::BigInt 1.55, from Tels.
[p5sagit/p5-mst-13.2.git] / lib / Math / BigInt / t / upgrade.t
CommitLineData
b3abae2a 1#!/usr/bin/perl -w
2
3use Test;
4use strict;
5
6BEGIN
7 {
8 $| = 1;
9393ace2 9 unshift @INC, '../lib'; # for running manually
231071d6 10 my $location = $0; $location =~ s/upgrade.t//;
9393ace2 11 unshift @INC, $location; # to locate the testing files
12 chdir 't' if -d 't';
56b9c951 13 plan tests => 2068
9393ace2 14 + 2; # our own tests
b3abae2a 15 }
16
17use Math::BigInt upgrade => 'Math::BigFloat';
18use Math::BigFloat;
19
20use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup
21 $ECL $CL);
22$class = "Math::BigInt";
23$CL = "Math::BigInt::Calc";
24$ECL = "Math::BigFloat";
25
26ok (Math::BigInt->upgrade(),'Math::BigFloat');
28df3e88 27ok (Math::BigInt->downgrade()||'','');
b3abae2a 28
29require 'upgrade.inc'; # all tests here for sharing