(expected, found, name_opt)
| 294 | } |
| 295 | |
| 296 | function assertArrayEquals(expected, found, name_opt) { |
| 297 | var start = ""; |
| 298 | if (name_opt) { |
| 299 | start = name_opt + " - "; |
| 300 | } |
| 301 | assertEquals(expected.length, found.length, start + "array length"); |
| 302 | if (expected.length === found.length) { |
| 303 | for (var i = 0; i < expected.length; ++i) { |
| 304 | assertEquals(expected[i], found[i], |
| 305 | start + "array element at index " + i); |
| 306 | } |
| 307 | } |
| 308 | } |
searching dependent graphs…