summaryrefslogtreecommitdiff
path: root/jstests/find3.js
blob: a5e4b7a4d663e3d01bc5c9af60c4db5439e84d7e (plain)
1
2
3
4
5
6
7
8
9
10
t = db.find3;
t.drop();

for ( i=1; i<=50; i++)
    t.save( { a : i } );

assert.eq( 50 , t.find().toArray().length );
assert.eq( 20 , t.find().limit(20).toArray().length );

assert(t.validate().valid);