jstests/aggregation/extras/utils.js
/**
 * Asserts that two arrays are equal - that is, if their sizes are equal and each element in
 * the 'actual' array has a matching element in the 'expected' array, without honoring elements
 * order.
 */
Asserts that two arrays are equal - that is, if their sizes are equal and each element in
the 'actual' array has a matching element in the 'expected' array, without honoring elements
order.
Asserts that two arrays are equal - that is if their sizes are equal and each element in the ' actual ' array has a matching element in the ' expected ' array without honoring elements order .
function assertArrayEq({actual = [], expected = [], fieldsToSkip = [], extraErrorMsg = ""} = {}) {
    assert.eq(arguments.length, 1, "assertArrayEq arguments must be in an object");
    assert(arrayEq(actual, expected, false, null, fieldsToSkip),
           `actual=${tojson(actual)}, expected=${tojson(expected)}${extraErrorMsg}`);
}
function assertArrayEq ( { actual = [ ] , expected = [ ] , fieldsToSkip = [ ] , extraErrorMsg = "" } = { } ) { assert . eq ( arguments . length , 1 , "assertArrayEq arguments must be in an object" ) ; assert ( arrayEq ( actual , expected , false , null , fieldsToSkip ) , ` ${ tojson ( actual ) } ${ tojson ( expected ) } ${ extraErrorMsg } ` ) ; }
Asserts that two arrays are equal - that is, if their sizes are equal and each element in
 the 'actual' array has a matching element in the 'expected' array, without honoring elements
 order.
Asserts that two arrays are equal - that is if their sizes are equal and each element in the ' actual ' array has a matching element in the ' expected ' array without honoring elements order .