Merge boxWithStdlib testData into box, delete BoxWithStdlib test
This commit is contained in:
committed by
Alexander Udalov
parent
22bfc9786a
commit
06a67e6602
@@ -0,0 +1,34 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
object AX {
|
||||
|
||||
@JvmStatic val c: String = "OK"
|
||||
|
||||
@JvmStatic fun aStatic(): String {
|
||||
return AX.b()
|
||||
}
|
||||
|
||||
fun aNonStatic(): String {
|
||||
return AX.b()
|
||||
}
|
||||
|
||||
@JvmStatic fun b(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun getProperty(): String {
|
||||
return AX.c
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
|
||||
if (AX.aStatic() != "OK") return "fail 1"
|
||||
|
||||
if (AX.aNonStatic() != "OK") return "fail 2"
|
||||
|
||||
if (AX.getProperty() != "OK") return "fail 3"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user