Add contains(Point) tests for all shapes #11

Closed
opened 2026-03-27 15:01:27 +00:00 by thib8956 · 0 comments
Owner

Priority: P1 — Medium

Context: contains(Point) is the critical hit-testing behavior used by the UI for selection. It is currently untested in all shape classes. A testing audit flagged this as P1 priority.

Scope: SRectangle, SCircle, STriangle, SText, SCollection

Goal: Test hit-testing behavior for each shape type:

  • Point inside shape
  • Point outside shape
  • Point on boundary
  • Point after translate

Estimate: 2–3 hours
Dependencies: None

**Priority:** P1 — Medium **Context:** `contains(Point)` is the critical hit-testing behavior used by the UI for selection. It is currently untested in all shape classes. A testing audit flagged this as P1 priority. **Scope:** SRectangle, SCircle, STriangle, SText, SCollection **Goal:** Test hit-testing behavior for each shape type: - Point inside shape - Point outside shape - Point on boundary - Point after translate **Estimate:** 2–3 hours **Dependencies:** None
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thib8956/new-shapes#11