Skip to content

Commit

Permalink
add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 12, 2023
1 parent c2770ac commit b2e6603
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_geometrycollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,11 @@ def test_nested_geometry_collection_eq() -> None:
gc4 = geometry.GeometryCollection([gc2, poly1])

assert gc3 == gc4


def test_geometry_collection_neq_when_empty() -> None:
gc1 = geometry.GeometryCollection([])
gc2 = geometry.GeometryCollection([geometry.Point(0, 0)])

assert gc1 != gc2
assert gc2 != gc1

0 comments on commit b2e6603

Please sign in to comment.