diff options
Diffstat (limited to 'jstests/core/server5346.js')
-rw-r--r-- | jstests/core/server5346.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/core/server5346.js b/jstests/core/server5346.js index f4a692bd16a..f627d0e68bd 100644 --- a/jstests/core/server5346.js +++ b/jstests/core/server5346.js @@ -2,14 +2,14 @@ t = db.server5346; t.drop(); -x = { _id : 1 , versions : {} } -t.insert( x ) +x = { _id : 1 , versions : {} }; +t.insert( x ); -t.update({ _id : 1 }, { $inc : { "versions.2_01" : 1 } } ) -t.update({ _id : 1 }, { $inc : { "versions.2_1" : 2 } } ) -t.update({ _id : 1 }, { $inc : { "versions.01" : 3 } } ) -t.update({ _id : 1 }, { $inc : { "versions.1" : 4 } } ) +t.update({ _id : 1 }, { $inc : { "versions.2_01" : 1 } } ); +t.update({ _id : 1 }, { $inc : { "versions.2_1" : 2 } } ); +t.update({ _id : 1 }, { $inc : { "versions.01" : 3 } } ); +t.update({ _id : 1 }, { $inc : { "versions.1" : 4 } } ); // Make sure the correct fields are set, without duplicates. assert.docEq( { "_id" : 1, "versions" : { "01" : 3, "1" : 4, "2_01" : 1, "2_1" : 2 } }, - t.findOne()) + t.findOne()); |