JS backend: added jsCode test cases

This commit is contained in:
Alexey Tsvetkov
2014-12-09 13:46:01 +03:00
parent 97bbcab77d
commit c3f67c54bd
32 changed files with 657 additions and 0 deletions
@@ -0,0 +1,19 @@
package foo
fun box(): String {
var c: Int = 0
js("""
for (var i = 1; i < 6; i++) {
if (i % 2 === 0) {
continue;
}
c++;
}
""")
assertEquals(3, c)
return "OK"
}