diff options
Diffstat (limited to 'jstests/core/indexf.js')
-rw-r--r-- | jstests/core/indexf.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/core/indexf.js b/jstests/core/indexf.js index 3ad222bcbb8..5a126b3e22f 100644 --- a/jstests/core/indexf.js +++ b/jstests/core/indexf.js @@ -2,12 +2,12 @@ t = db.indexf; t.drop(); -t.ensureIndex( { x : 1 } ); +t.ensureIndex({x: 1}); -t.save( { x : 2 } ); -t.save( { y : 3 } ); -t.save( { x : 4 } ); +t.save({x: 2}); +t.save({y: 3}); +t.save({x: 4}); -assert.eq( 2 , t.findOne( { x : 2 } ).x , "A1" ); -assert.eq( 3 , t.findOne( { x : null } ).y , "A2" ); -assert.eq( 4 , t.findOne( { x : 4 } ).x , "A3" ); +assert.eq(2, t.findOne({x: 2}).x, "A1"); +assert.eq(3, t.findOne({x: null}).y, "A2"); +assert.eq(4, t.findOne({x: 4}).x, "A3"); |