Files
mongo/jstests/core/find3.js
Randolph Tan 5595b94560 SERVER-12127 migrate js tests to jscore suite when not related to writes
Moved test jstest/[a-i].js -> jstests/core/ and made changes to comply with write command api
2014-02-28 16:26:33 -05:00

11 lines
203 B
JavaScript

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);