Skip to content

Commit

Permalink
Cleanup & comment in jstests/geod.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kreuter committed Jul 12, 2010
1 parent c6f48e0 commit e1c000d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jstests/geod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e1c000d

Please sign in to comment.