[PATCH9 BigInt v1.60 fix for "\n"
[p5sagit/p5-mst-13.2.git] / lib / Math / BigInt / t / with_sub.t
CommitLineData
8f675a64 1#!/usr/bin/perl -w
2
3# Test use Math::BigFloat with => 'Math::BigInt::SomeSubclass';
4
5use Test;
6use strict;
7
8BEGIN
9 {
10 $| = 1;
11 # to locate the testing files
12 my $location = $0; $location =~ s/with_sub.t//i;
13 if ($ENV{PERL_CORE})
14 {
15 # testing with the core distribution
16 @INC = qw(../t/lib);
17 }
18 unshift @INC, '../lib';
19 if (-d 't')
20 {
21 chdir 't';
22 require File::Spec;
23 unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
24 }
25 else
26 {
27 unshift @INC, $location;
28 }
29 print "# INC = @INC\n";
30
f9a08e12 31 plan tests => 1627
8f675a64 32 + 1;
33 }
34
35use Math::BigFloat with => 'Math::BigInt::Subclass';
36
37use vars qw ($class $try $x $y $f @args $ans $ans1 $ans1_str $setup $CL);
38$class = "Math::BigFloat";
39$CL = "Math::BigInt::Calc";
40
41ok (Math::BigFloat->config()->{with}, 'Math::BigInt::Subclass');
42
43require 'bigfltpm.inc'; # all tests here for sharing