github assertk-org/assertk v0.20

latest releases: v0.28.1, v0.28.0, v0.27.0...
5 years ago

Added

  • Add corresponds/doesNotCorrespond to compare values with a correspondence function. This is
    useful when the value doesn't implement equals.

Changed

  • Changed the signature of isEqualTo from Any? to T. This should not effect any existing code
    due to T being covariant. The one improvement this brings is that literal numbers can be inferred
    to the correct type. Before this change assertThat(1L).isEqualTo(1) would fail, now it passes.

Fixed

  • Fixed isSuccess failing on null return values

Don't miss a new assertk release

NewReleases is sending notifications on new releases.