JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-30 15:31:53 +03:00
parent 3801052460
commit 34bf3e6e56
196 changed files with 1162 additions and 1293 deletions
@@ -0,0 +1,21 @@
package foo
interface Test {
fun addFoo(s: String): String {
return s + "FOO"
}
fun addBar(s: String): String {
return s + "BAR"
}
}
class A() : Test {
val string = "TEST"
fun value(): String {
return addBar(addFoo(string))
}
}
fun box() = if (A().value() == "TESTFOOBAR") "OK" else "fail"