Files
new-shapes/src/test
Thibaud b87deecf40
All checks were successful
CI / build-and-test (pull_request) Successful in 17s
test: add contains(Point) hit-testing tests for all shapes
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:23:57 +00:00
..