Replies: 1 comment 1 reply
-
It's already possible to write the following, relying on assertThat(new R(new BigDecimal("1.1")))
.extracting(R::bd, as(BIG_DECIMAL))
.isCloseTo(new BigDecimal("1.099"), withPercentage(1));
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Did you consider something like extractingBigDecimal, extractingInstant, to simplify and easy access type-specific assertions?
Example
as-is
nice-to-have
Beta Was this translation helpful? Give feedback.
All reactions