Skip to content

v0.18

Compare
Choose a tag to compare
@evant evant released this 13 Jul 14:13

Added

  • Add extracting to allow extracing a value for each item in an array.
  • Add Assert<Result<T>>.isSuccess() and Assert<Result<T>>.isFailure() to replace AssertBlock assertions.
  • Add messageContains for throwable.

Changed

  • Minimum supported kotlin version is 1.3.40
  • assertThat {} and catch {} are inlined for better coroutine support
  • Improved display of Pair and Triple

Breaking Changes

  • AssertBlock is removed and it's methods have been turned into extension functions on Assert<Result<T>>.
    You can migrate by:
    1. Alt-enter on returnedValue, thrownError, and doesNotThrowAnyException and select import.
    2. Alt-enter on the deprecated version of above and choose replace with...
    3. If your expression only has 1 value, you can replace ex: isSucess().all { isEqualTo(1) } with isSuccess().isEqualTo(1)

Deprecated

  • Deprecated catch in favor of assertThat {}.isFailure()