Move ir box test under "box/ir"
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
fun eqeq(x: Any, y: Any) =
|
||||
x is Double && y is Double && x == y
|
||||
|
||||
fun anyEqeq(x: Any, y: Any) =
|
||||
x == y
|
||||
|
||||
fun box(): String {
|
||||
val Z = 0.0
|
||||
val NZ = -0.0
|
||||
|
||||
if (!(Z == NZ)) return "Fail 1"
|
||||
if (!eqeq(Z, NZ)) return "Fail 2"
|
||||
|
||||
if (anyEqeq(Z, NZ)) return "Fail A"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user