jstests/aggregation/sources/setWindowFields/parse.js
// Bounds must not be backwards.
Bounds must not be backwards.
Bounds must not be backwards .
function badBounds(bounds) {
    assert.commandFailedWithCode(runWindowFunction(Object.merge({"$sum": "$a"}, {window: bounds})),
                                 5339900,
                                 'Lower bound must not exceed upper bound');
}
function badBounds ( bounds ) { assert . commandFailedWithCode ( runWindowFunction ( Object . merge ( { "$sum" : "$a" } , { window : bounds } ) ) , 5339900 , 'Lower bound must not exceed upper bound' ) ; }
Bounds must not be backwards.
Bounds must not be backwards .