kotlin.test / kotlin.test / expect expect Common JVM JS Native 1.0 @JvmName("expectInline") inline fun <T> expect( expected: T, block: () -> T): Unit(source) Asserts that given function block returns the given expected value. Common JVM JS Native 1.0 @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.