diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-29 17:19:23 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-29 17:19:23 -0400 |
commit | de7fe40a96248c474677214f7030d27feb06d965 (patch) | |
tree | f9bd6d9b61a171d4b6c3ac9205af64d12ab967bd /jstests | |
parent | 90eceb3c9170badaa89e8d33d3f31840f19283b0 (diff) | |
download | mongo-de7fe40a96248c474677214f7030d27feb06d965.tar.gz |
multi test that passed trying to track down other test
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/update7.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/update7.js b/jstests/update7.js index f93bc396aa1..5cf95bce868 100644 --- a/jstests/update7.js +++ b/jstests/update7.js @@ -97,3 +97,15 @@ assert.eq( "3,6" , s() , "D4" ); t.update( { a : 2 } , { $inc : { x : 1 } } , false , true ); assert.eq( "4,7" , s() , "D5" ); + +t.save( { _id : 3 } ); +assert.eq( "4,7," , s() , "E1" ); +t.update( {} , { $inc : { x : 1 } } , false , true ); +assert.eq( "5,8,1" , s() , "E2" ); + +t.save( { _id : 4 } ); +t.save( { _id : 5 } ); +assert.eq( "5,8,1,," , s() , "E3" ); +t.update( {} , { $inc : { x : 1 } } , false , true ); +assert.eq( "6,9,2,1,1" , s() , "E3" ); + |