blob: 268d7b1e20b3e52831156593d94b8f2db4c6a68f [file]
// WITH_STDLIB
fun box(): String {
if (1.0 / 0.0 != Double.POSITIVE_INFINITY) return "fail1"
if (1.0 / -0.0 != Double.NEGATIVE_INFINITY) return "fail2"
if (!((0.0 / 0.0).isNaN())) return "fail3"
return "OK"
}