1N/A# test that config ( trap_nan => 1, trap_inf => 1) really works/dies 1N/A chdir 't' if -d 't'; 1N/A # can do and defaults are okay? 1N/A # can set via hash ref? 1N/A # also test that new() still works normally 1N/A eval ("\$x = \$class->new('42'); \$x->bnan();"); 1N/A ok ($x,42); # after new() never modified 1N/A eval ("\$x = \$class->new('4711'); \$x->binf();"); 1N/A ok ($x,4711); # after new() never modified 1N/A eval ("\$x = \$class->new('4711'); \$x->bdiv(0);"); 1N/A ok ($x,4711); # after new() never modified 1N/A eval ("\$x = \$class->new('-0815'); \$x->bdiv(0);"); 1N/A ok ($x,-815); # after new() never modified 1N/A eval ("\$x = \$class->new('0'); \$x->bdiv(0);"); 1N/A ok ($x,0); # after new() never modified 1N/A############################################################################## 1N/A ok ($x,'7/4'); # never modified since it dies 1N/A ok ($x,'7/4'); # never modified since it dies 1N/A ok ($x,'7/4'); # never modified since it dies