blob: 746a20c99e5e67addd68e62e5cf05572e2018f17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# 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()), 'Math::BigInt', "as_int(123) is of class Math::BigInt");
$x->bneg();
is ($x->is_pos(), 0, '-123 is not positive');
is ($x->is_neg(), 1, '-123 is negative');
|