JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-30 14:59:26 +03:00
parent 7e2d5b04de
commit 3801052460
112 changed files with 760 additions and 676 deletions
@@ -0,0 +1,16 @@
package foo
val a1 = Array<Int>(3, { i: Int -> i })
fun box(): String {
val i = a1.iterator()
if (i.hasNext() != true) return "fail1"
if (i.next() != 0) return "fail2"
if (i.hasNext() != true) return "fail3"
if (i.next() != 1) return "fail4"
if (i.hasNext() != true) return "fail5"
if (i.next() != 2) return "fail6"
if (i.hasNext() != false) return "fail7"
return "OK"
}