JS: move more test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 12:37:13 +03:00
parent efb82a044f
commit cdf2212c73
70 changed files with 484 additions and 749 deletions
@@ -0,0 +1,30 @@
package foo
// CHECK_LABELS_COUNT: function=box name=block count=1
// CHECK_LABELS_COUNT: function=box name=block_0 count=1
fun box(): String {
var i = 0
var j = 0
js("""
block: {
i++;
block: {
j++;
break block;
j++;
}
break block;
i++;
}
""")
assertEquals(1, i, "i")
assertEquals(1, j, "j")
return "OK"
}