diff options
Diffstat (limited to 'jstests/or4.js')
-rw-r--r-- | jstests/or4.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/or4.js b/jstests/or4.js index 6f9941b4428..710d411024c 100644 --- a/jstests/or4.js +++ b/jstests/or4.js @@ -53,7 +53,8 @@ assert.eq.automsg( "3", "t.count( {z:1} )" ); assert.eq.automsg( "3", "t.find( {$or:[{a:2},{b:3}]} ).toArray().length" ); checkArrs( "t.find().toArray()", "t.find( {$or:[{a:2},{b:3}]} ).toArray()" ); -//t.save( {a:2} ); -//t.save( {a:2} ); +assert.eq.automsg( "3", "t.find( {$or:[{a:2},{b:3}]} ).batchSize( 2 ).toArray().length" ); -//assert.eq.automsg( "3", "t.find( {$or:[{a:2},{b:3}]} ).batchSize( 2 ).toArray().length" ); +t.save( {a:2} ); + +assert.eq.automsg( "4", "t.find( {$or:[{a:2},{b:3}]} ).batchSize( 2 ).toArray().length" );
\ No newline at end of file |