Skip to content

tests: add CGPath tests - #27

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cgpath
Open

tests: add CGPath tests#27
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/cgpath

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Adds a gnustep-tests suite for CGPath under Tests/opal, covering emptiness, the bounding box and path bounding box of rect, line and curve paths, the current point, containment, equality, and filling a path into a bitmap context (sampling a pixel inside and outside the filled path). Expected values were checked against Apple CoreGraphics on a macOS runner.

Two checks are marked hopeful, with fixes sent separately:

  • CGPathGetCurrentPoint after adding a rect returns the last corner rather than the rect origin: CGPathCloseSubpath does not move the current point back to the start of the subpath.
  • CGPathGetPathBoundingBox of a cubic curve returns the control-point bounds (0,0,100,100) rather than the tight bounds of the curve (0,0,100,75).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant