Skip to content

Commit

Permalink
Add test for empty points omission in LineString
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Nov 26, 2023
1 parent 6b90f3f commit c4ede9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ def test_coords_get_3d() -> None:
assert line.coords == ((0.0, 0.0, 0), (1.0, 1.0, 1))


def test_empty_points_omitted() -> None:
line = geometry.LineString([(0, 0, 0), (None, None, None), (2, 2, 2)])

assert line.coords == ((0, 0, 0), (2, 2, 2))


def test_set_geoms_raises() -> None:
line = geometry.LineString([(0, 0), (1, 0)]) # pragma: no mutate

Expand Down

0 comments on commit c4ede9e

Please sign in to comment.