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
11 lines
194 B
Kotlin
11 lines
194 B
Kotlin
fun box(): String {
|
|
val a = ShortArray(5)
|
|
val x = a.iterator()
|
|
var i = 0
|
|
while (x.hasNext()) {
|
|
if (a[i] != x.next()) return "Fail $i"
|
|
i++
|
|
}
|
|
return "OK"
|
|
}
|