Add 'continue' command for loops. Also enhance for() unit tests which are now breaking and need to be fixed

This commit is contained in:
Jason Turner
2013-02-23 14:49:20 -07:00
parent e298333ac6
commit c9995480e6
7 changed files with 160 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
var i = 0
var j = 0
while (i < 10) {
if (++i > 5)
{
continue
}
j = i;
}
assert_equal(10, i);
assert_equal(5, j);