Update box tests to 1.2.0-rc-39
This commit is contained in:
committed by
Pavel Punegov
parent
0121b6a185
commit
ffa1ffa659
+12
@@ -0,0 +1,12 @@
|
||||
const val M = Int.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
var step = 0
|
||||
for (i in M .. M) {
|
||||
++step
|
||||
if (step > 1) throw AssertionError("Should be executed once")
|
||||
}
|
||||
if (step != 1) throw AssertionError("Should be executed once")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user