alias.inc revision 7c478bd95313f5f23a4c958a745db2134aa03244
# alias subroutine testing, included by sub_ali.t and mbi_ali.t
my $x = $CL->new(123);
is ($x->is_pos(), 1, '123 is positive');
is ($x->is_neg(), 0, '123 is not negative');
is ($x->as_int(), 123, '123 is 123 as int');
is (ref($x->as_int()), $CL, "as_int(123) is of class '$CL'");
$x->bneg();
is ($x->is_pos(), 0, '-123 is not positive');
is ($x->is_neg(), 1, '-123 is negative');