jstests/core/wildcard_index_basic_index_bounds.js
// Asserts that the given cursors produce identical result sets.
Asserts that the given cursors produce identical result sets.
Asserts that the given cursors produce identical result sets .
function assertResultsEq(cursor1, cursor2) {
    while (cursor1.hasNext()) {
        assert(cursor2.hasNext());
        assert.eq(cursor1.next()._id, cursor2.next()._id);
    }
    assert(!cursor2.hasNext());
}
function assertResultsEq ( cursor1 , cursor2 ) { while ( cursor1 . hasNext ( ) ) { assert ( cursor2 . hasNext ( ) ) ; assert . eq ( cursor1 . next ( ) . _id , cursor2 . next ( ) . _id ) ; } assert ( ! cursor2 . hasNext ( ) ) ; }
Asserts that the given cursors produce identical result sets.
Asserts that the given cursors produce identical result sets .