Package-level declarations

Functions

Link copied to clipboard
fun Assert<*>.appendName(name: String, separator: String = ""): String

Constructs a new name appending to the existing name if available using the given separator.

Link copied to clipboard
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:

Link copied to clipboard
fun <T> Assert<T>.expectedListDiff(expected: List<Any?>, actual: List<Any?>)

Fails an assert with an error message diffing the two given lists.

Link copied to clipboard
fun <T> Assert<T>.fail(expected: Any?, actual: Any?)

Fails an assert with the given expected and actual values.

Link copied to clipboard
fun show(value: Any?, wrap: String = "<>"): String

Shows the primary value in a failure message.