blob: c15f3c2e16a57b1892804e74a23a25ea99213cd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
actual = '';
expected = '10,19,1000028,3000037,6000046,10000055,15000064,21000073,28000082,36000091,45000100,';
function f() {
var x = 10;
var g = function(p) {
for (var i = 0; i < 10; ++i)
x = p + i;
}
for (var i = 0; i < 10; ++i) {
appendToActual(x);
g(1000000 * i + x);
}
appendToActual(x);
}
f();
assertEq(actual, expected)
|