assorted VMS test fix-ups, $Config{prefixexp} revisited
[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;
9 # to locate the testing files
10 my $location = $0; $location =~ s/upgrade.t//i;
11 if ($ENV{PERL_CORE})
12 {
13 @INC = qw(../t/lib); # testing with the core distribution
14 }
15 unshift @INC, '../lib'; # for testing manually
16 if (-d 't')
17 {
18 chdir 't';
19 require File::Spec;
20 unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
21 }
22 else
23 {
24 unshift @INC, $location;
25 }
26 print "# INC = @INC\n";
27
28 plan tests => 1991;
29 }
30
31use Math::BigInt upgrade => 'Math::BigFloat';
32use Math::BigFloat;
33
34use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup
35 $ECL $CL);
36$class = "Math::BigInt";
37$CL = "Math::BigInt::Calc";
38$ECL = "Math::BigFloat";
39
40ok (Math::BigInt->upgrade(),'Math::BigFloat');
41
42require 'upgrade.inc'; # all tests here for sharing