Move ir box test under "box/ir"

This commit is contained in:
Mikhael Bogdanov
2018-08-02 09:36:31 +02:00
parent 24579c27a2
commit cb53e86183
25 changed files with 605 additions and 4 deletions
@@ -0,0 +1,15 @@
fun ltDD(x: Comparable<Double>, y: Double) =
x is Double && x < y
fun ltCD(x: Comparable<Double>, y: Double) =
x < y
fun box(): String {
val Z = 0.0
val NZ = -0.0
if (ltDD(NZ, Z)) return "Fail 1"
if (!ltCD(NZ, Z)) return "Fail 2"
return "OK"
}