Added new string tests

This commit is contained in:
Michael Bogdanov
2015-04-03 18:27:08 +03:00
parent a19c1ed476
commit 0efe8890b8
7 changed files with 98 additions and 6 deletions
@@ -0,0 +1,9 @@
fun test(p: String?): String {
return "${p ?: "Default"} test"
}
fun box(): String {
if (test(null) != "Default test") return "fail 1: ${test(null)}"
if (test("Good") != "Good test") return "fail 1: ${test("OK")}"
return "OK"
}