Files
evo-ai/.venv/lib/python3.10/site-packages/shapely/tests/geometry/test_multi.py
2025-04-25 15:30:54 -03:00

12 lines
297 B
Python

import numpy as np
test_int_types = [int, np.int16, np.int32, np.int64]
class MultiGeometryTestCase:
def subgeom_access_test(self, cls, geoms):
geom = cls(geoms)
for t in test_int_types:
for i, g in enumerate(geoms):
assert geom.geoms[t(i)] == g