summaryrefslogtreecommitdiff
path: root/dist/Math-BigInt/t/upgrade.t
blob: 630deb53dc5a1f21c59051e16bdd591b64b356eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w

use strict;
use Test::More tests => 2112
    + 2;			# our own tests

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";

is (Math::BigInt->upgrade(),'Math::BigFloat');
is (Math::BigInt->downgrade()||'','');

require 't/upgrade.inc';	# all tests here for sharing