[K/N][Tests] Adjust moved tests interfaceCallsNCasts..vector to new infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
93642020ff
commit
bb8a7b6795
+11
-4
@@ -3,19 +3,26 @@
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package codegen.lambda.lambda10
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
@Test fun runTest() {
|
||||
val sb = StringBuilder()
|
||||
|
||||
fun box(): String {
|
||||
var str = "original"
|
||||
|
||||
val lambda = {
|
||||
println(str)
|
||||
sb.appendLine(str)
|
||||
}
|
||||
|
||||
lambda()
|
||||
|
||||
str = "changed"
|
||||
lambda()
|
||||
|
||||
assertEquals("""
|
||||
original
|
||||
changed
|
||||
|
||||
""".trimIndent(), sb.toString())
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user