test: add contains(Point) hit-testing tests for all shapes #21

Merged
thib8956 merged 1 commits from issue-11/contains-point-tests into master 2026-03-27 23:28:59 +00:00

1 Commits

Author SHA1 Message Date
740572bfb7 test: add contains(Point) hit-testing tests for all shapes
All checks were successful
CI / build-and-test (pull_request) Successful in 16s
Add 36 tests covering bounds-based hit-testing (getBounds().contains(Point))
for SRectangle, SCircle, STriangle, SText, and SCollection:
- Point inside, outside, on boundary (inclusive top-left, exclusive bottom-right)
- Point after translate to verify position update
- SCollection union bounds, gap between children, single-child bounds

Closes #11
2026-03-27 23:25:29 +00:00