[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,9 @@
* that can be found in the LICENSE file.
*/
package codegen.objectExpression.expr1
import kotlin.test.*
@Test fun runTest() {
fun box(): String {
val a = "a"
val x = object {
@@ -18,5 +16,6 @@ import kotlin.test.*
fun foo(s: String) = s + s
}
println(x.toString())
assertEquals("aabb", x.toString())
return "OK"
}
@@ -1 +0,0 @@
aabb
@@ -3,11 +3,10 @@
* that can be found in the LICENSE file.
*/
package codegen.objectExpression.expr2
import kotlin.test.*
@Test fun runTest() {
val a = "a"
fun box(): String {
val a = "OK"
val x = object {
override fun toString(): String {
@@ -19,7 +18,5 @@ import kotlin.test.*
fun foo(lambda: () -> String) = lambda()
}
print(x)
return x.toString()
}
fun print(x: Any) = println(x.toString())
@@ -1 +0,0 @@
a
@@ -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"
}
@@ -1,3 +0,0 @@
1
2