diff options
Diffstat (limited to 'jstests/remove4.js')
-rw-r--r-- | jstests/remove4.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/remove4.js b/jstests/remove4.js new file mode 100644 index 0000000..bd007ed --- /dev/null +++ b/jstests/remove4.js @@ -0,0 +1,10 @@ +t = db.remove4; +t.drop(); + +t.save ( { a : 1 , b : 1 } ); +t.save ( { a : 2 , b : 1 } ); +t.save ( { a : 3 , b : 1 } ); + +assert.eq( 3 , t.find().length() ); +t.remove( { b : 1 } ); +assert.eq( 0 , t.find().length() ); |