9 unshift @INC, '../lib'; # for running manually
10 my $location = $0; $location =~ s/subclass.t//;
11 unshift @INC, $location; # to locate the testing files
19 use vars qw ($class $try $x $y $f @args $ans $ans1 $ans1_str $setup);
20 $class = "Math::Subclass";
22 require 'bigfltpm.inc'; # perform same tests as bigfltpm
24 # Now do custom tests for Subclass itself
25 my $ms = new Math::Subclass 23;
26 print "# Missing custom attribute \$ms->{_custom}" if !ok (1, $ms->{_custom});
30 my $bf = new Math::BigFloat 23; # same as other
32 print "# Tried: \$ms += \$bf, got $ms" if !ok (46, $ms);
33 print "# Missing custom attribute \$ms->{_custom}" if !ok (1, $ms->{_custom});
34 print "# Wrong class: ref(\$ms) was ".ref($ms) if !ok ($class, ref($ms));