[K/N][Tests] Adjust moved tests interfaceCallsNCasts..vector to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-16 23:54:04 +01:00
committed by Space Team
parent 93642020ff
commit bb8a7b6795
163 changed files with 841 additions and 672 deletions
@@ -3,24 +3,30 @@
* that can be found in the LICENSE file.
*/
package codegen.objectExpression.expr3
import kotlin.test.*
@Test fun runTest() {
val sb = StringBuilder()
fun box(): String {
var cnt = 0
var x: Any = ""
for (i in 0 .. 1) {
print(x)
sb.appendLine(x)
cnt++
val y = object {
override fun toString() = cnt.toString()
}
x = y
}
print(x)
}
sb.appendLine(x)
fun print(x: Any) = println(x.toString())
assertEquals("""
1
2
""".trimIndent(), sb.toString())
return "OK"
}