summaryrefslogtreecommitdiff
path: root/jstests/core/geo10.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo10.js')
-rw-r--r--jstests/core/geo10.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/jstests/core/geo10.js b/jstests/core/geo10.js
index 5c26fbb3609..10879fc5d80 100644
--- a/jstests/core/geo10.js
+++ b/jstests/core/geo10.js
@@ -3,11 +3,14 @@
coll = db.geo10;
coll.drop();
-assert.commandWorked( db.geo10.ensureIndex( { c : '2d', t : 1 }, { min : 0, max : Math.pow( 2, 40 ) } ));
-assert.eq( 2, db.geo10.getIndexes().length, "A3" );
+assert.commandWorked(db.geo10.ensureIndex({c: '2d', t: 1}, {min: 0, max: Math.pow(2, 40)}));
+assert.eq(2, db.geo10.getIndexes().length, "A3");
-assert.writeOK( db.geo10.insert( { c : [ 1, 1 ], t : 1 } ));
-assert.writeOK( db.geo10.insert( { c : [ 3600, 3600 ], t : 1 } ));
-assert.writeOK( db.geo10.insert( { c : [ 0.001, 0.001 ], t : 1 } ));
+assert.writeOK(db.geo10.insert({c: [1, 1], t: 1}));
+assert.writeOK(db.geo10.insert({c: [3600, 3600], t: 1}));
+assert.writeOK(db.geo10.insert({c: [0.001, 0.001], t: 1}));
-printjson( db.geo10.find({ c : { $within : { $box : [[0.001, 0.001], [Math.pow(2, 40) - 0.001, Math.pow(2, 40) - 0.001]] } }, t : 1 }).toArray() );
+printjson(db.geo10.find({
+ c: {$within: {$box: [[0.001, 0.001], [Math.pow(2, 40) - 0.001, Math.pow(2, 40) - 0.001]]}},
+ t: 1
+}).toArray());