blob: e80e8e2af41d524d7e293e26fe60fde3ac7ac020 [file]
// WITH_STDLIB
import kotlin.test.*
val sb = StringBuilder()
fun box(): String {
val first = "first"
val second = "second"
run {
sb.appendLine(first)
sb.appendLine(second)
}
assertEquals("""
first
second
""".trimIndent(), sb.toString())
return "OK"
}
fun run(f: () -> Unit) {
f()
}