diff options
Diffstat (limited to 'jstests/find3.js')
-rw-r--r-- | jstests/find3.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/find3.js b/jstests/find3.js new file mode 100644 index 0000000..a5e4b7a --- /dev/null +++ b/jstests/find3.js @@ -0,0 +1,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); |