Permalink
Browse files

test that's already working

  • Loading branch information...
1 parent d456901 commit 5b6a5a90ac496448abb3ebf831191ba13a42bd1e @erh erh committed Jan 12, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 jstests/update_multi6.js
@@ -0,0 +1,10 @@
+
+t = db.update_multi6
+t.drop();
+
+t.update( { _id : 1 } , { _id : 1 , x : 1 , y : 2 } , true , false );
+assert( t.findOne( { _id : 1 } ) , "A" )
+
+t.update( { _id : 2 } , { _id : 2 , x : 1 , y : 2 } , true , true );
+assert( db.getLastError() , "B: " + db.getLastErrorCmd() );
+

0 comments on commit 5b6a5a9

Please sign in to comment.