Skip to content

Commit b8c0078

Browse files
authored
test/test_geod.py - fix #849 (#852)
1 parent dc669ca commit b8c0078

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_geod.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ def test_geod_inverse_transform():
132132
latprev = lat1pt
133133
for (lon, lat), (res12, res21, resdist) in zip(lonlats, res_az12_az21_dists):
134134
o_az12, o_az21, o_dist = gg.inv(lonprev, latprev, lon, lat)
135-
assert_almost_equal((o_az12, o_az21, o_dist), (res12, res21, resdist))
135+
if resdist == 0:
136+
assert_almost_equal(o_dist, 0)
137+
else:
138+
assert_almost_equal((o_az12, o_az21, o_dist), (res12, res21, resdist))
136139
latprev = lat
137140
lonprev = lon
138141
if not include_terminus:

0 commit comments

Comments
 (0)