summaryrefslogtreecommitdiff
path: root/jstests/or4.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-05-24 23:51:24 -0700
committerAaron <aaron@10gen.com>2010-05-24 23:51:24 -0700
commit54921ae594ad644081b37163baadcd9ffcfacfb9 (patch)
treeb36f0f358cbba5847f55c2912a9a766244bd1106 /jstests/or4.js
parent595e8104a0814b4f3a7e486bcfc1a32b3040a3ff (diff)
downloadmongo-54921ae594ad644081b37163baadcd9ffcfacfb9.tar.gz
SERVER-109 basic getmore
Diffstat (limited to 'jstests/or4.js')
-rw-r--r--jstests/or4.js7
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