Skip to content

v0.23

Compare
Choose a tag to compare
@Kritarie Kritarie released this 03 Sep 16:47
· 155 commits to main since this release

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 to assertThat as an alternative to .toString() for external types
  • Moved most String assertions to CharSequence

Added

  • Added prop function with KProperty1 argument.
  • Added containsExactlyInAnyOrder assertion for Iterable and primitive arrays
  • Added initial Coroutines artifact (additional support planned for the future)

Deprecated

  • Deprecated prop function with KCallable argument. Use the new overload
    with type-safe KProperty1 argument or another overload with explicit name and lambda.

Fixed

  • Primitive array 'contains' methods now work with NaN. ex:
    assertThat(floatArrayOf(Float.Nan)).contains(Float.NaN)
    will pass when it failed before.
  • Fixes a bug causing failures to sometimes be dropped in a nested assertion context