assertTrue

inline fun assertTrue(message: String? = null, block: () -> Boolean)(source)

Asserts that the given block returns true.

Since Kotlin

1.0

fun assertTrue(actual: Boolean, message: String? = null)(source)

Asserts that the expression is true with an optional message.

Since Kotlin

1.0