diff options
Diffstat (limited to 'jstests/core/remove_justone.js')
-rw-r--r-- | jstests/core/remove_justone.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/core/remove_justone.js b/jstests/core/remove_justone.js index e412a13483c..19bfd6d1a03 100644 --- a/jstests/core/remove_justone.js +++ b/jstests/core/remove_justone.js @@ -1,16 +1,16 @@ -t = db.remove_justone -t.drop() +t = db.remove_justone; +t.drop(); -t.insert( { x : 1 } ) -t.insert( { x : 1 } ) -t.insert( { x : 1 } ) -t.insert( { x : 1 } ) +t.insert( { x : 1 } ); +t.insert( { x : 1 } ); +t.insert( { x : 1 } ); +t.insert( { x : 1 } ); -assert.eq( 4 , t.count() ) +assert.eq( 4 , t.count() ); -t.remove( { x : 1 } , true ) -assert.eq( 3 , t.count() ) +t.remove( { x : 1 } , true ); +assert.eq( 3 , t.count() ); -t.remove( { x : 1 } ) -assert.eq( 0 , t.count() ) +t.remove( { x : 1 } ); +assert.eq( 0 , t.count() ); |