Files
kotlin-fork/plugins/power-assert/testData/codegen/lambda/ListOperationsRequire.kt
T

11 lines
222 B
Kotlin
Vendored

// FUNCTION: kotlin.require
fun box() = expectThrowableMessage {
val list = listOf("Jane", "John")
require(
value = list
.map { "Doe, $it" }
.any { it == "Scott, Michael" }
)
}