[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
+15 -7
View File
@@ -3,22 +3,30 @@
* that can be found in the LICENSE file.
*/
package codegen.`try`.finally5
import kotlin.test.*
@Test fun runTest() {
println(foo())
val sb = StringBuilder()
fun box(): String {
sb.appendLine(foo())
assertEquals("""
Done
Finally
0
""".trimIndent(), sb.toString())
return "OK"
}
fun foo(): Int {
try {
println("Done")
sb.appendLine("Done")
return 0
} finally {
println("Finally")
sb.appendLine("Finally")
}
println("After")
sb.appendLine("After")
return 1
}