]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function testArrayConcat() { |
2 | var array = createRuntimeArray(1, 2, 3); | |
3 | var result = array.concat(); | |
4 | ||
5 | if (result.length != 3) | |
6 | throw new Error("Runtime array length is incorrect"); | |
7 | for (var i = 0; i < result.length; i++) { | |
8 | if (result[i] != i + 1) | |
9 | throw new Error("Runtime array concat result is incorrect"); | |
10 | } | |
11 | }; | |
12 | ||
13 | testArrayConcat(); |