Move ir box test under "box/ir"
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
fun <T> assertEquals(actual: T, expected: T) {
|
||||
if (actual != expected) {
|
||||
throw java.lang.AssertionError("Assertion failed: $actual != $expected")
|
||||
}
|
||||
}
|
||||
|
||||
enum class Test {
|
||||
OK
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(Test.OK.ordinal, 0)
|
||||
assertEquals(Test.OK.name, "OK")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user