Rename directory for back-end tests

This commit is contained in:
Andrey Breslav
2013-11-26 20:34:10 +04:00
parent fe00b03279
commit c70a54306f
25 changed files with 54 additions and 54 deletions
@@ -0,0 +1,15 @@
tailRecursive fun test(x : Int, a : Any) : Int {
if (x == 1) {
if (x != 1) {
test(0, "no tail")
return test(0, "tail")
} else {
return test(x + test(0, "no tail"), "tail")
}
} else if (x > 0) {
return test(x - 1, "tail")
}
return -1
}
fun box() : String = if (test(1000000, "test") == -1) "OK" else "FAIL"