Files
kotlin-fork/compiler/testData/ir/loweredIr/interpreter/constTrimIndent.kt
T
Ivan Kylchik 0b22cf6cb9 Rewrite ir interpreter's dump tests to box
Box tests will check the correctness of interpreter, meantime
by dumped ir we can understand that expression was folded.
2022-05-18 21:20:01 +03:00

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"
}