diff options
Diffstat (limited to 'jstests/core/geof.js')
-rw-r--r-- | jstests/core/geof.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/geof.js b/jstests/core/geof.js index 786ead6a94a..718c6e6593d 100644 --- a/jstests/core/geof.js +++ b/jstests/core/geof.js @@ -1,17 +1,17 @@ -t = db.geof +t = db.geof; t.drop(); // corners (dist ~0.98) -t.insert({loc: [ 0.7, 0.7]}) -t.insert({loc: [ 0.7, -0.7]}) -t.insert({loc: [-0.7, 0.7]}) -t.insert({loc: [-0.7, -0.7]}) +t.insert({loc: [ 0.7, 0.7]}); +t.insert({loc: [ 0.7, -0.7]}); +t.insert({loc: [-0.7, 0.7]}); +t.insert({loc: [-0.7, -0.7]}); // on x axis (dist == 0.9) -t.insert({loc: [-0.9, 0]}) -t.insert({loc: [-0.9, 0]}) +t.insert({loc: [-0.9, 0]}); +t.insert({loc: [-0.9, 0]}); -t.ensureIndex( { loc : "2d" } ) +t.ensureIndex( { loc : "2d" } ); t.find({loc: {$near: [0,0]}}).limit(2).forEach( function(o){ //printjson(o); |