diff options
Diffstat (limited to 'jstests/core/update6.js')
-rw-r--r-- | jstests/core/update6.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/update6.js b/jstests/core/update6.js index 23d5846c206..eda470abf45 100644 --- a/jstests/core/update6.js +++ b/jstests/core/update6.js @@ -24,7 +24,7 @@ t.save( {"_id" : 2 , assert.eq( 4 , Object.keySet( t.find({_id:2},{b3:1})[0].b3 ).length , "test 1 : ks before" ); -t.update({_id:2},{$inc: { 'b3.0719' : 1}},true) +t.update({_id:2},{$inc: { 'b3.0719' : 1}},true); assert.eq( 5 , Object.keySet( t.find({_id:2},{b3:1})[0].b3 ).length , "test 1 : ks after" ); @@ -40,7 +40,7 @@ t.save( {"_id" : 2 , assert.eq( 4 , Object.keySet( t.find({_id:2},{b3:1})[0].b3 ).length , "test 2 : ks before" ); -printjson( t.find({_id:2},{b3:1})[0].b3 ) -t.update({_id:2},{$inc: { 'b3.0719' : 1}} ) -printjson( t.find({_id:2},{b3:1})[0].b3 ) +printjson( t.find({_id:2},{b3:1})[0].b3 ); +t.update({_id:2},{$inc: { 'b3.0719' : 1}} ); +printjson( t.find({_id:2},{b3:1})[0].b3 ); assert.eq( 5 , Object.keySet( t.find({_id:2},{b3:1})[0].b3 ).length , "test 2 : ks after" ); |