are there matchers for bigdecimal?
# strikt
c
are there matchers for bigdecimal?
to compare just the value and ignoring the formatting (1.0 == 1.00)
r
Is that how BigDecimal equality works?
There’s nothing specific right now but I would have thought
isEqualTo
would be sufficient
c
bigdecimal is only equal if the format is also equal. (so 1.0 != 1.00)
which probably means you should wrap it and provide equals yourself
r
yeah, or there should be a clearly named assertion that isn’t just
isEqualTo
c
isEqualToByValue or hasSameValueAs