Commit ab1ba41
peng.li24
test: expand collision-critical edge cases + high-volume random tests (162 tests, all strict ==)
- Add TestCollisionEdgeCases with 16 deterministic boundary tests:
poly-poly touching/near/epsilon-overlap, poly-ls parallel/endpoint,
intersects touching/epsilon-miss, ls-pt endpoint/near/beyond,
ls-ls perpendicular/collinear/parallel, ls-poly vertex-on-edge
- Add high-volume random tests covering all 6 collision patterns:
Poly-Poly (1000 f64 + 500 f32), Poly-LS (1000 f64 + 500 f32),
LS-Point (1000 f64 + 500 f32), LS-LS (1000 f64 + 500 f32),
Intersects poly-poly + ls-poly (500 each f64)
- Fix f32 tests: use _f32() truncation on both C++ f32 and Python f64
inputs to ensure bit-identical GEOS results (identical double values)
- Fix HighVolume f32 cross-type tests: use f64 cpp APIs with f32-truncated
coords (LineStringF32.distance only accepts LineStringF32, not cross-type)
- All comparisons use strict equality (==)1 parent b7cc2ad commit ab1ba41
1 file changed
Lines changed: 648 additions & 605 deletions
0 commit comments