michael@0: actual = ''; michael@0: expected = '0,1,0,1,0,1,'; michael@0: michael@0: function f() { michael@0: for (var i = 0; i < arguments.length; ++i) { michael@0: appendToActual(i); michael@0: } michael@0: } michael@0: michael@0: f(1, 2); michael@0: f(1, 2); michael@0: f(2, 2); michael@0: michael@0: michael@0: assertEq(actual, expected)