Skip to content

Commit

Permalink
test/test_geod.py - fix pyproj4#849
Browse files Browse the repository at this point in the history
  • Loading branch information
idanmiara committed May 20, 2021
1 parent dc669ca commit ef5b24c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_geod.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def test_geod_inverse_transform():
latprev = lat1pt
for (lon, lat), (res12, res21, resdist) in zip(lonlats, res_az12_az21_dists):
o_az12, o_az21, o_dist = gg.inv(lonprev, latprev, lon, lat)
assert_almost_equal((o_az12, o_az21, o_dist), (res12, res21, resdist))
if resdist == 0:
assert_almost_equal(o_dist, 0)
else:
assert_almost_equal((o_az12, o_az21, o_dist), (res12, res21, resdist))
latprev = lat
lonprev = lon
if not include_terminus:
Expand Down

0 comments on commit ef5b24c

Please sign in to comment.