Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup & comment in jstests/geod.js.

  • Loading branch information...
commit e1c000d2637ea66283b6c23e282dc5df030955df 1 parent c6f48e0
@kreuter kreuter authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  jstests/geod.js
View
3  jstests/geod.js
@@ -3,8 +3,9 @@ t.drop()
t.save( { loc: [0,0] } )
t.save( { loc: [0.5,0] } )
t.ensureIndex({loc:"2d"})
+// do a few geoNears with different maxDistances. The first iteration
+// should match no points in the dataset.
dists = [.49, .51, 1.0]
-print('foo')
for (idx in dists){
b=db.runCommand({geoNear:"geod", near:[1,0], num:2, maxDistance:dists[idx]});
assert.eq(b.errmsg, undefined, "A"+idx);
Please sign in to comment.
Something went wrong with that request. Please try again.