blob: c490d45936220df2f3a8539c2d9c39365a0411f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var a = [];
for (let j = 0; j < 6; ++j) {
e = 3;
for each (let c in [10, 20, 30]) {
a.push(e);
e = c;
}
}
for (let j = 0; j < 6; ++j) {
assertEq(a[j*3 + 0], 3);
assertEq(a[j*3 + 1], 10);
assertEq(a[j*3 + 2], 20);
}
|