-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
Description
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:
test-more/lib/Test2/Compare/Number.pm
Line 66 in 8fd8e3f
| return 0 if ref $got; |
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)
Reactions are currently unavailable