3 # test calling conventions
11 # chdir 't' if -d 't';
12 unshift @INC, '../lib'; # for running manually
16 package Math::BigInt::Test;
20 @ISA = qw/Math::BigInt/; # child of MBI
23 package Math::BigFloat::Test;
27 @ISA = qw/Math::BigFloat/; # child of MBI
37 ###############################################################################
38 # check whether op's accept normal strings, even when inherited by subclasses
40 # do one positive and one negative test to avoid false positives by "accident"
42 my ($func,@args,$ans,$rc,$class,$try);
46 next if /^#/; # skip comments
53 @args = split(/:/,$_,99);
56 Math::BigInt Math::BigFloat Math::BigInt::Test Math::BigFloat::Test/)
58 $try = "$class\->$func('$args[0]');";
60 print "# Tried: '$try'\n" if !ok ($rc, $ans);
68 ###############################################################################
69 # Perl 5.005 does not like ok ($x,undef)
75 ok (1,1) and return if !defined $x;