Commit | Line | Data |
b4bc5691 |
1 | #!/usr/bin/perl -w |
2 | |
3 | ############################################################################### |
4 | |
5 | use Test; |
6 | use strict; |
7 | |
8 | BEGIN |
9 | { |
10 | $| = 1; |
ec0fbd55 |
11 | my $location = $0; $location =~ s/bninfnan.t//i; |
24716a00 |
12 | if ($ENV{PERL_CORE}) |
13 | { |
990fb837 |
14 | @INC = qw(../lib ../lib/bignum/t); # testing with the core distribution |
24716a00 |
15 | } |
16 | else |
17 | { |
18 | unshift @INC, '../lib'; # for testing manually |
19 | } |
20 | if (-d 't') |
21 | { |
22 | chdir 't'; |
23 | require File::Spec; |
24 | unshift @INC, File::Spec->catdir(File::Spec->updir, $location); |
25 | } |
26 | else |
27 | { |
28 | unshift @INC, $location; |
29 | } |
30 | print "# INC = @INC\n"; |
b4bc5691 |
31 | plan tests => 26; |
32 | } |
33 | |
34 | use bignum; |
35 | |
36 | my ($x); |
37 | |
38 | require "infnan.inc"; |
39 | |