0b22cf6cb9
Box tests will check the correctness of interpreter, meantime by dumped ir we can understand that expression was folded.
14 lines
313 B
Kotlin
Vendored
14 lines
313 B
Kotlin
Vendored
// WITH_STDLIB
|
|
const val trimIndent = "123".trimIndent()
|
|
const val complexTrimIndent =
|
|
"""
|
|
ABC
|
|
123
|
|
456
|
|
""".trimIndent()
|
|
|
|
fun box(): String {
|
|
if (trimIndent != "123") return "Fail 1"
|
|
if (complexTrimIndent != "ABC\n123\n456") return "Fail 2"
|
|
return "OK"
|
|
} |