k(defined($y), '$y is defined');
is(ref($y), 'Math::BigFloat', '$y has the right class');
isnt(refaddr($y), refaddr($x), '$y is a different object than $x');
# sign
ok(defined($y->{s
,
'mantissa of $y and $x use the same reference type');
isnt(ref($y->{_m}), '', 'mantissa of $y is a reference');
isnt(refaddr($y->{_m}), refaddr($x->{_m}),
'mantissa of $y is not
onent mantissa of $y and $x use the same reference type');
isnt(ref($y->{_e}), '', 'exponent mantissa of $y is a reference');
isnt(refaddr($y->{_e}), refaddr($x->{_e}),
'exponent mantiss
ok(defined($y), '$y is defined');
is(ref($y), 'Math::BigInt', '$y has the right class');
isnt(refaddr($y), refaddr($x), '$y is a different object than $x');
# sign
ok(defined($y->{s
'mantissa of $y and $x use the same reference type');
isnt(ref($y->{value}), '', 'mantissa of $y is a reference');
isnt(refaddr($y->{value}), refaddr($x->{value}),
'mantissa of $
ok(defined($y), '$y is defined');
is(ref($y), 'Math::BigInt', '$y has the right class');
isnt(refaddr($y), refaddr($x), '$y is a different object than $x');
# sign
ok(defined($y->{s
f($y), 'Math::BigFloat', '$y is a Math::BigFloat');
cmp_ok($y, "==", "Inf", '$y == Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigRat -> new("-Inf"
$y), 'Math::BigFloat', '$y is a Math::BigFloat');
cmp_ok($y, "==", "-Inf", '$y == -Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigRat -> new("NaN")
is(ref($y), 'Math::BigFloat', '$y is a Math::BigFloat');
is($y, "NaN", '$y is NaN');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigRat -> new("2");
f($y), 'Math::BigFloat', '$y is a Math::BigFloat');
cmp_ok($y, "==", "Inf", '$y == Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigFloat -> new("-In
$y), 'Math::BigFloat', '$y is a Math::BigFloat');
cmp_ok($y, "==", "-Inf", '$y == -Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigFloat -> new("NaN
is(ref($y), 'Math::BigFloat', '$y is a Math::BigFloat');
is($y, "NaN", '$y is NaN');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigFloat -> new("2")
s(ref($y), 'Math::BigRat', '$y is a Math::BigRat');
cmp_ok($y, "==", "Inf", '$y == Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigFloat -> new("-In
ref($y), 'Math::BigRat', '$y is a Math::BigRat');
cmp_ok($y, "==", "-Inf", '$y == -Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigFloat -> new("NaN
t');
is(ref($y), 'Math::BigRat', '$y is a Math::BigRat');
is($y, "NaN", '$y is NaN');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigFloat -> new("2")
s(ref($y), 'Math::BigRat', '$y is a Math::BigRat');
cmp_ok($y, "==", "Inf", '$y == Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigRat -> new("-Inf"
ref($y), 'Math::BigRat', '$y is a Math::BigRat');
cmp_ok($y, "==", "-Inf", '$y == -Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigRat -> new("NaN")
t');
is(ref($y), 'Math::BigRat', '$y is a Math::BigRat');
is($y, "NaN", '$y is NaN');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigRat -> new("2");
2 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' output arg is not the second input arg");
isnt(refaddr($got[0]), refaddr($m),
, 2 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($y),
"'$test' output arg is not the second input arg");
isnt(refaddr($got), refaddr($m),
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($x),
"'$test' output arg is not the first input arg");
f($y), 'Math::BigFloat', '$y is a Math::BigFloat');
cmp_ok($y, "==", "Inf", '$y == Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigInt -> new("-Inf"
$y), 'Math::BigFloat', '$y is a Math::BigFloat');
cmp_ok($y, "==", "-Inf", '$y == -Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigInt -> new("NaN")
is(ref($y), 'Math::BigFloat', '$y is a Math::BigFloat');
is($y, "NaN", '$y is NaN');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigInt -> new("2");
s(ref($y), 'Math::BigRat', '$y is a Math::BigRat');
cmp_ok($y, "==", "Inf", '$y == Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigInt -> new("-Inf"
ref($y), 'Math::BigRat', '$y is a Math::BigRat');
cmp_ok($y, "==", "-Inf", '$y == -Inf');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigInt -> new("NaN")
t');
is(ref($y), 'Math::BigRat', '$y is a Math::BigRat');
is($y, "NaN", '$y is NaN');
isnt(refaddr($x), refaddr($y), '$x and $y are different objects');
};
$x = Math::BigInt -> new("2");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[0]), refaddr($y),
"'$test' first output arg is not the second input
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got[1]), refaddr($y),
"'$test' second output arg is not the second inpu
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($x),
"'$test' output arg is not the input arg");
SKIP: {
skip "Scalar::Util not available", 1 unless $scalar_util_ok;
isnt(refaddr($got), refaddr($x),
"'$test' output arg is not the input arg");
Int -> new(100); $y = $x -> bpi();');
is(ref($y), "Math::BigFloat",
'$y is a Math::BigFloat');
isnt(refaddr($x), refaddr($y), '$x and $y are not the same object');
# When accuracy is specified, it
'3.141592654',
'$x = Math::BigInt -> new(100); $y = $x -> bpi();');
is(ref($y), "Math::BigFloat",
'$y is a Math::BigFloat');
isnt(refaddr($x), refaddr($y), '$x and $y are not the same object');
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");
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");
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");