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
15 lines
219 B
Kotlin
15 lines
219 B
Kotlin
fun foo(x: Int) {}
|
|
|
|
fun loop(var times : Int) {
|
|
while(times > 0) {
|
|
val u : (value : Int) -> Unit = {
|
|
foo(it)
|
|
}
|
|
u(times--)
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
loop(5)
|
|
return "OK"
|
|
} |