JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-30 17:07:29 +03:00
parent 34bf3e6e56
commit 9da1a50cae
68 changed files with 465 additions and 355 deletions
+19
View File
@@ -0,0 +1,19 @@
class Outer(val foo: StringBuilder) {
inner class Inner() {
fun len(): Int {
return foo.length
}
}
fun test(): Inner {
return Inner()
}
}
fun box(): String {
val sb = StringBuilder("xyzzy")
val o = Outer(sb)
val i = o.test()
val l = i.len()
return if (l != 5) "fail" else "OK"
}