summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-29 17:19:23 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-29 17:19:23 -0400
commitde7fe40a96248c474677214f7030d27feb06d965 (patch)
treef9bd6d9b61a171d4b6c3ac9205af64d12ab967bd /jstests
parent90eceb3c9170badaa89e8d33d3f31840f19283b0 (diff)
downloadmongo-de7fe40a96248c474677214f7030d27feb06d965.tar.gz
multi test that passed trying to track down other test
Diffstat (limited to 'jstests')
-rw-r--r--jstests/update7.js12
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" );
+