Refactor codegen tests: no special box() result

box() shall always return "OK"
This commit is contained in:
Alexander Udalov
2013-01-24 18:04:01 +04:00
parent de37f73c8d
commit 0090ce3322
6 changed files with 23 additions and 50 deletions
@@ -12,4 +12,7 @@ class C {
}
}
fun box() = C().Obj.o + C().Obj.InnerObj.k() + C().Obj.D().ko
fun box(): String {
val res = C().Obj.o + C().Obj.InnerObj.k() + C().Obj.D().ko
return if (res == "OKKO") "OK" else "Fail: $res"
}