Added
- Add
corresponds
/doesNotCorrespond
to compare values with a correspondence function. This is
useful when the value doesn't implementequals
.
Changed
- Changed the signature of
isEqualTo
fromAny?
toT
. This should not effect any existing code
due toT
being covariant. The one improvement this brings is that literal numbers can be inferred
to the correct type. Before this changeassertThat(1L).isEqualTo(1)
would fail, now it passes.
Fixed
- Fixed
isSuccess
failing on null return values