Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/controlStructures/bottles.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03:00

10 lines
232 B
Kotlin

fun box(): String {
var bottles = 99
while (bottles > 0) {
// System.out.println("bottles of beer on the wall");
bottles -= 1
bottles--
}
return if (bottles == -1) "OK" else "Fail $bottles"
}