[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
+19 -7
View File
@@ -3,23 +3,35 @@
* that can be found in the LICENSE file.
*/
package codegen.`try`.finally11
import kotlin.test.*
@Test fun runTest() {
val sb = StringBuilder()
fun box(): String {
test()
assertEquals("""
Finally
Catch 2
Done
""".trimIndent(), sb.toString())
return "OK"
}
fun test() {
try {
try {
return
} catch (e: Error) {
println("Catch 1")
sb.appendLine("Catch 1")
} finally {
println("Finally")
sb.appendLine("Finally")
throw Error()
}
} catch (e: Error) {
println("Catch 2")
sb.appendLine("Catch 2")
}
println("Done")
sb.appendLine("Done")
}