assertk.assertions.support

Package assertk.assertions.support

Platform and version requirements: Common

Functions

expected
(Common)

fun <T> Assert<T>.expected(message: String, expected: Any? = NONE, actual: Any? = NONE): Nothing

Fails an assert with the given expected message. These should be in the format:

fail
(Common)

fun <T> Assert<T>.fail(expected: Any?, actual: Any?): Unit

Fails an assert with the given expected and actual values.

show
(Common)

fun show(value: Any?, wrap: String = "<>"): String

Shows the primary value in a failure message.