0df71bd696
- initialize environment only once in setUp() - add comments on why some tests are disabled - modify and rename some tests - re-enable now working tests - extract some tests into files with box() - remove useless 'throws' declarations and commented code
10 lines
208 B
Kotlin
10 lines
208 B
Kotlin
fun box(): String {
|
|
val a = Array<Int>(5, {it})
|
|
val x = a.indices.iterator()
|
|
while (x.hasNext()) {
|
|
val i = x.next()
|
|
if (a[i] != i) return "Fail $i ${a[i]}"
|
|
}
|
|
return "OK"
|
|
}
|