1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
14 lines
270 B
Kotlin
14 lines
270 B
Kotlin
infix fun <T> T.mustBe(t : T) {
|
|
assert("$this must be $t") {this == t}
|
|
}
|
|
|
|
inline fun assert(message : String, condition : () -> Boolean) {
|
|
if (!condition())
|
|
throw AssertionError(message)
|
|
}
|
|
|
|
fun box() : String {
|
|
"lala" mustBe "lala"
|
|
return "OK"
|
|
}
|