Merge boxWithStdlib testData into box, delete BoxWithStdlib test
This commit is contained in:
committed by
Alexander Udalov
parent
22bfc9786a
commit
06a67e6602
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
inline fun bar(x: String, block: (String) -> String) = "def" + block(x)
|
||||
fun foobar(x: String, y: String, z: String) = x + y + z
|
||||
|
||||
fun foo() : String {
|
||||
return foobar("abc", bar("ghi") { x -> x + "jkl" }, "mno")
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
assertEquals("abcdefghijklmno", foo())
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user