[K/N][Tests] Adjust moved codegen tests to new infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
a5f3d5b737
commit
e15068c62f
+6
-5
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user