ChaiScript/unittests/3.x/loop_inner_outer.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

10 lines
127 B
ChaiScript

var total = 0
for (var i = 0; i < 10; ++i) {
for (var j = 0; j < 10; ++j) {
total += 1
}
}
assert_equal(100, total);