Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
expect
@JvmName("expectInline") inline fun <T> expect(
expected: T,
block: () -> T
): Unit
(source)
Asserts that given function block returns the given expected value.
@JvmName("expectInline") inline fun <T> expect(
expected: T,
message: String?,
block: () -> T
): Unit
(source)
Asserts that given function block returns the given expected value and use the given message if it fails.