Permalink
Browse files

Cleanup & comment in jstests/geod.js.

  • Loading branch information...
1 parent c6f48e0 commit e1c000d2637ea66283b6c23e282dc5df030955df @kreuter kreuter committed Jul 12, 2010
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);

0 comments on commit e1c000d

Please sign in to comment.