1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
actual = ''; expected = '0,1,2,0,1,2,'; for (var a = 0; a < 2; ++a) { for (var b = 0; b < 3; ++b) { (function (x) { (function () { for (var c = 0; c < 1; ++c) { appendToActual(x); } })(); })(b); } } assertEq(actual, expected)