Cross Reference: bare_mbi.t
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
lib
/
Math
/
BigInt
/
t
/
bare_mbi.t
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
bare_mbi.t revision 1
1
N/A
#!/
usr
/
bin
/
perl
-w
1
N/A
1
N/A
use
Test
;
1
N/A
use
strict
;
1
N/A
1
N/A
BEGIN
1
N/A
{
1
N/A
$| =
1
;
1
N/A
# to locate the testing files
1
N/A
my
$location
= $
0
;
$location
=~
s
/
bare_mbi.t
//i;
1
N/A
if
(
$ENV
{
PERL_CORE
})
1
N/A
{
1
N/A
# testing with the core distribution
1
N/A
@
INC
=
qw
(../
t
/
lib
)
;
1
N/A
}
1
N/A
unshift
@
INC
,
qw
(../
lib
)
;
# to locate the modules
1
N/A
if
(-d
't'
)
1
N/A
{
1
N/A
chdir
't'
;
1
N/A
require
File
::
Spec
;
1
N/A
unshift
@
INC
,
File
::
Spec
->
catdir
(
File
::
Spec
->
updir
,
$location
)
;
1
N/A
}
1
N/A
else
1
N/A
{
1
N/A
unshift
@
INC
,
$location
;
1
N/A
}
1
N/A
print
"# INC = @INC\n"
;
1
N/A
1
N/A
plan
tests
=>
2832
;
1
N/A
}
1
N/A
1
N/A
use
Math
::
BigInt
lib
=>
'BareCalc'
;
1
N/A
1
N/A
print
"# "
,
Math
::
BigInt
->
config
()
->{
lib
},
"\n"
;
1
N/A
1
N/A
use
vars
qw
(
$class
$try
$x $y $f @
args
$ans
$ans1
$ans1_str
$setup
$CL
)
;
1
N/A
$class
=
"Math::BigInt"
;
1
N/A
$CL
=
"Math::BigInt::BareCalc"
;
1
N/A
1
N/A
my
$version
=
'1.61'
;
# for $VERSION tests, match current release (by hand!)
1
N/A
1
N/A
require
'
bigintpm.inc
'
;
# perform same tests as bigintpm
1
N/A