When used raw in is() comparisons, BigInts and Floats are deep compared as objects, which can cause issues if accuracy and precision are different. Attempting to use number fails since Math::BigInt and Float are hashrefs and therefore fail the following check:
Adding support for these to number (e.g. checking if the ref isa() Math::BigInt) would be useful, or maybe as a separate checker that can also allow configuration of the other attributes.
(And there's always the bigint and bignum pragmas to make it work as is)
When used raw in
is()comparisons, BigInts and Floats are deep compared as objects, which can cause issues if accuracy and precision are different. Attempting to usenumberfails since Math::BigInt and Float are hashrefs and therefore fail the following check:test-more/lib/Test2/Compare/Number.pm
Line 66 in 8fd8e3f
Adding support for these to number (e.g. checking if the ref
isa()Math::BigInt) would be useful, or maybe as a separate checker that can also allow configuration of the other attributes.(And there's always the bigint and bignum pragmas to make it work as is)