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
+28
View File
@@ -0,0 +1,28 @@
package foo
// CHECK_LABELS_COUNT: function=test name=loop count=1
// CHECK_LABELS_COUNT: function=test name=loop_0 count=1
fun test() {
var i = 0
var j = 0
loop@ for (k in 1..10) {
loop@ for (m in 1..10) {
if (m == 4) break@loop
j = m
}
if (k == 8) break@loop
i = k
}
assertEquals(3, j)
assertEquals(7, i)
}
fun box(): String {
test()
return "OK"
}