JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 14:51:32 +03:00
parent a18f5eca2d
commit 9bf124af3f
129 changed files with 766 additions and 685 deletions
@@ -0,0 +1,20 @@
package foo
class A() {
fun eval() = 3
fun eval(a: Int) = 4
fun eval(a: String) = 5
fun eval(a: String, b: Int) = 6
}
fun box(): String {
if (A().eval() != 3) return "fail1"
if (A().eval(2) != 4) return "fail2"
if (A().eval("3") != 5) return "fail3"
if (A().eval("a", 3) != 6) return "fail4"
return "OK"
}