mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
9 lines
244 B
Kotlin
Vendored
9 lines
244 B
Kotlin
Vendored
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"
|
|
} |