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,19 @@
package foo
import java.util.ArrayList
class N() : ArrayList<Any>() {
override fun add(el: Any): Boolean {
if (!super<ArrayList>.add(el)) {
throw Exception()
}
return false
}
}
fun box(): String {
val n = N()
if (n.add("239")) return "fail"
if (n.get(0) == "239") return "OK";
return "fail";
}