JS: move more test to box tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package foo
|
||||
|
||||
fun <A, B, C> run(a: A, b: B, func: (A, B) -> C): C = js("func(a, b)")
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(3, run(1, 2) { a, b -> a + b})
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user