expect

@JvmName(name = "expectInline")
inline fun <T> expect(expected: T, block: () -> T)(source)

Asserts that given function block returns the given expected value.

Since Kotlin

1.0

@JvmName(name = "expectInline")
inline fun <T> expect(expected: T, message: String?, block: () -> T)(source)

Asserts that given function block returns the given expected value and use the given message if it fails.

Since Kotlin

1.0