[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,11 +3,11 @@
* that can be found in the LICENSE file.
*/
package codegen.localClass.innerTakesCapturedFromOuter
import kotlin.test.*
fun box() {
val sb = StringBuilder()
fun box(): String {
var previous: Any? = null
for (i in 0 .. 2) {
class Outer {
@@ -17,11 +17,14 @@ fun box() {
override fun toString() = Inner().toString()
}
if (previous != null) println(previous.toString())
if (previous != null) sb.appendLine(previous.toString())
previous = Outer()
}
}
@Test fun runTest() {
box()
}
assertEquals("""
0
1
""".trimIndent(), sb.toString())
return "OK"
}