v0.23
Changed
- Minimum supported kotlin version is 1.4.0
- Multiplatform artifacts are published as a single artifact. You can now just write
sourceSets { commonTest { dependencies { implementation "com.willowtreeapps.assertk:assertk:..." } } }
instead of defining one for each platform.
- Added support for the Kotlin/JS IR compiler
- Added optional
displayActual
function toassertThat
as an alternative to.toString()
for external types - Moved most
String
assertions toCharSequence
Added
- Added
prop
function withKProperty1
argument. - Added
containsExactlyInAnyOrder
assertion forIterable
and primitive arrays - Added initial Coroutines artifact (additional support planned for the future)
Deprecated
- Deprecated
prop
function withKCallable
argument. Use the new overload
with type-safeKProperty1
argument or another overload with explicit name and lambda.
Fixed
- Primitive array 'contains' methods now work with NaN. ex:
will pass when it failed before.
assertThat(floatArrayOf(Float.Nan)).contains(Float.NaN)
- Fixes a bug causing failures to sometimes be dropped in a nested assertion context