is($got[1], $out1,
"'$test' second output arg has the right value");
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the third input arg");
is($got[1], $out1,
"'$test' second output arg has the right value");
isnt(refaddr($got[0]), refaddr($x),
"'$test' output arg is not the first input arg");
"The value of the denominator hasn't changed");
isnt(refaddr($n), refaddr($n_orig),
"The addresses of the numerators have changed");
isnt(refaddr($d), refaddr($d_orig),
"The addresses o
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
arg");
is(ref($got[0]), "",
"'$test' output arg is a Perl scalar");
isnt($got[0], undef,
"'$test' output arg is defined");
like($got[0], qr/^[+-]?(\
ests => 4,
is(ref($got), "",
"'$test' output arg is a Perl scalar");
isnt($got, undef,
"'$test' output arg is defined");
like($got, qr/^[+-]?(\d+(\.\
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg")
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
r classes.
for my $other (@classes) {
next if $other eq $class;
isnt($other->config($key), $class->config($key),
qq|$other->config("$key") isn't affe
eys = ('_m', '_e');
plan tests => scalar @keys;
for my $key (@keys) {
isnt(refaddr($y -> {$key}), refaddr($x -> {$key}),
'library thingy is a copy');
is(ref($y), 'Math::BigInt', '$y is a Math::BigInt');
cmp_ok($y, "==", 2, '$y == 2');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
note("as_int() returns a Math::
: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($m),
"'$test' first output arg is not the second i
is(ref($y), 'Math::BigInt', '$y is a Math::BigInt');
cmp_ok($y, "==", 2, '$y == 2');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
note("as_int() returns a Math::
Math::BigInt');
is(ref($y), 'Math::BigInt', '$y is a Math::BigInt');
cmp_ok($y, "==", 2, '$y == 2');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
done_testing();
value");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' first output arg is not the third input arg"
value");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' first output arg is not the third input arg"
value");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' first output arg is not the third input arg"
Math::BigRat');
is(ref($y), 'Math::BigInt', '$y is a Math::BigInt');
cmp_ok($y, "==", 2, '$y == 2');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
done_testing();