bigroot.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
# Test broot function (and bsqrt() function, since it is used by broot()).
# It is too slow to be simple included in bigfltpm.inc, where it would get
# executed 3 times.
# But it is better to test the numerical functionality, instead of not testing
# it at all.
use Test;
use strict;
{
$| = 1;
# to locate the testing files
{
# testing with the core distribution
}
if (-d 't')
{
chdir 't';
}
else
{
}
print "# INC = @INC\n";
}
my $cl = "Math::BigFloat";
my $c = "Math::BigInt";
# 2 ** 240 =
# 1766847064778384329583297500742918515827483896875618958121606201292619776
# takes way too long
#test_broot ('2','240', 8, undef, '1073741824');
#test_broot ('2','240', 9, undef, '106528681.3099908308759836475139583940127');
#test_broot ('2','120', 9, undef, '10321.27324073880096577298929482324664787');
#test_broot ('2','120', 17, undef, '133.3268493632747279600707813049418888729');
sub test_broot
{
$result =~ s/\..*//;
}