[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
+6 -5
View File
@@ -3,19 +3,20 @@
* that can be found in the LICENSE file.
*/
package codegen.boxing.boxing0
import kotlin.test.*
class Box<T>(t: T) {
var value = t
}
@Test fun runTest() {
fun box(): String {
val box: Box<Int> = Box<Int>(17)
println(box.value)
if (box.value != 17) return "FAIL 1: ${box.value}"
val nonConst = 17
val box2: Box<Int> = Box<Int>(nonConst)
println(box2.value)
if (box2.value != 17) return "FAIL 1: ${box2.value}"
return "OK"
}