JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 14:14:34 +03:00
parent cdf2212c73
commit a18f5eca2d
43 changed files with 374 additions and 456 deletions
@@ -0,0 +1,17 @@
// MODULE: main(module1)
// FILE: main.kt
fun box(): String {
assertEquals("A: invoked from module", f("A"))
assertEquals(10, A(10).x)
return "OK"
}
// MODULE: module1
// FILE: module1.kt
public fun f(s: String): String = "${s}: invoked from module"
public class A(val x: Int)