Update test data, unmute test
Now behavior is the same as in OI for these cases.
The behavior was changed in 100a6f70ca
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
class TestNumberConversionsInTernary {
|
||||
fun intOrDoubleAsDouble(flag: Boolean, x: Int, y: Double): Double {
|
||||
return (if (flag) x else y).toDouble()
|
||||
return if (flag) x.toDouble() else y
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user