source:
trunk/essentials/dev-lang/perl/lib/Math/BigRat/t/requirer.t
| Last change on this file was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 715 bytes | |
| Line | |
|---|---|
| 1 | #!/usr/bin/perl -w |
| 2 | |
| 3 | # check that simple requiring BigRat works |
| 4 | |
| 5 | use strict; |
| 6 | use Test::More; |
| 7 | |
| 8 | BEGIN |
| 9 | { |
| 10 | $| = 1; |
| 11 | # to locate the testing files |
| 12 | my $location = $0; $location =~ s/requirer.t//i; |
| 13 | if ($ENV{PERL_CORE}) |
| 14 | { |
| 15 | # testing with the core distribution |
| 16 | @INC = qw(../t/lib); |
| 17 | } |
| 18 | unshift @INC, qw(../lib); # to locate the modules |
| 19 | if (-d 't') |
| 20 | { |
