MCPcopy Index your code
hub / github.com/nodejs/node / assertArrayEquals

Function assertArrayEquals

deps/v8/test/intl/assert.js:296–308  ·  view source on GitHub ↗
(expected, found, name_opt)

Source from the content-addressed store, hash-verified

294}
295
296function 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}

Callers 15

listenerFunction · 0.85
listenerFunction · 0.85
TestFunction · 0.85
testConstructionFunction · 0.85
regexp.jsFile · 0.85
TestNumberSortFunction · 0.85

Calls 1

assertEqualsFunction · 0.70

Tested by 3

testFunction · 0.68
testFunction · 0.68
testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…