use strict;
use Test;
{
$| = 1;
chdir 't' if -d 't';
}
my ($cfg,$x);
{
# can do and defaults are okay?
# can set?
# also test that new() still works normally
eval ("\$x = \$class->new('42'); \$x->bnan();");
# can reset?
# can set?
eval ("\$x = \$class->new('4711'); \$x->binf();");
# +$x/0 => +inf
eval ("\$x = \$class->new('4711'); \$x->bdiv(0);");
# -$x/0 => -inf
eval ("\$x = \$class->new('-0815'); \$x->bdiv(0);");
# 0/0 => NaN
eval ("\$x = \$class->new('0'); \$x->bdiv(0);");
}
##############################################################################
# BigInt
eval ("\$x = \$mbi->new('0.1');");
eval ("\$x = \$mbi->new('0a.1');");
##############################################################################
# BigFloat
eval ("\$x = \$mbf->new('0.1a');");
# all tests done