Added
- Add
extracting
to allow extracing a value for each item in an array. - Add
Assert<Result<T>>.isSuccess()
andAssert<Result<T>>.isFailure()
to replaceAssertBlock
assertions. - Add
messageContains
for throwable.
Changed
- Minimum supported kotlin version is 1.3.40
assertThat {}
andcatch {}
are inlined for better coroutine support- Improved display of
Pair
andTriple
Breaking Changes
AssertBlock
is removed and it's methods have been turned into extension functions onAssert<Result<T>>
.
You can migrate by:- Alt-enter on
returnedValue
,thrownError
, anddoesNotThrowAnyException
and select import. - Alt-enter on the deprecated version of above and choose replace with...
- If your expression only has 1 value, you can replace ex:
isSucess().all { isEqualTo(1) }
withisSuccess().isEqualTo(1)
- Alt-enter on
Deprecated
- Deprecated
catch
in favor ofassertThat {}.isFailure()