[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-12 17:06:31 +01:00
committed by Space Team
parent a5f3d5b737
commit e15068c62f
301 changed files with 2958 additions and 2382 deletions
+8 -5
View File
@@ -3,14 +3,17 @@
* that can be found in the LICENSE file.
*/
package codegen.boxing.boxing15
import kotlin.test.*
@Test fun runTest() {
println(foo(17))
fun box(): String {
val res1 = foo(17)
if (res1 != 17) return "FAIL 1: $res1"
val nonConst = 17
println(foo(nonConst))
val res2 = foo(nonConst)
if (res2 != 17) return "FAIL 2: $res2"
return "OK"
}
fun <T : Int> foo(x: T): Int = x