[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,27 +3,39 @@
* that can be found in the LICENSE file.
*/
package codegen.`object`.initialization1
import kotlin.test.*
val sb = StringBuilder()
class TestClass {
constructor() {
println("constructor1")
sb.appendLine("constructor1")
}
constructor(x: Int) : this() {
println("constructor2")
sb.appendLine("constructor2")
}
init {
println("init")
sb.appendLine("init")
}
val f = println("field")
val f = sb.appendLine("field")
}
@Test fun runTest() {
fun box(): String {
TestClass()
TestClass(1)
assertEquals("""
init
field
constructor1
init
field
constructor1
constructor2
""".trimIndent(), sb.toString())
return "OK"
}