Skip to content

tests: add CGAffineTransform tests - #21

Merged
fredkiefer merged 2 commits into
gnustep:masterfrom
DTW-Thalion:tests/cgaffinetransform
Jul 25, 2026
Merged

tests: add CGAffineTransform tests#21
fredkiefer merged 2 commits into
gnustep:masterfrom
DTW-Thalion:tests/cgaffinetransform

Conversation

@DTW-Thalion

@DTW-Thalion DTW-Thalion commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Adds a gnustep-tests suite for CGAffineTransform under Tests/opal, covering construction (translation, scale, rotation), composition order (Concat and the Scale/Translate/Rotate builders), inversion, application to point/size/rect, and the identity/equality predicates. Expected values were checked against Apple CoreGraphics on a macOS runner.

One divergence is marked hopeful: CGAffineTransformIsIdentity returns true for any transform whose off-diagonal and translation are zero, so a pure scale is misreported as the identity. The fix is sent separately.

Also wires the test suite into CI (runs gnustep-tests in Tests/opal after the build); verified green for both gnustep-1.9 and gnustep-2.0.

@DTW-Thalion

Copy link
Copy Markdown
Contributor Author

@gcasa @fredkiefer who maintains this repo?

@DTW-Thalion DTW-Thalion changed the title tests: add CGAffineTransform tests tests: add CGAffineTransform and CGGeometry tests Jul 25, 2026
@DTW-Thalion
DTW-Thalion force-pushed the tests/cgaffinetransform branch from d2d25e9 to 7aec19c Compare July 25, 2026 12:35
@DTW-Thalion DTW-Thalion changed the title tests: add CGAffineTransform and CGGeometry tests tests: add CGAffineTransform tests Jul 25, 2026
@@ -0,0 +1,32 @@
#

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that this file is actually needed? It does no harm so I will commit it.

@fredkiefer
fredkiefer merged commit 744ab05 into gnustep:master Jul 25, 2026
4 checks passed
@DTW-Thalion

Copy link
Copy Markdown
Contributor Author

It's part of the test template I have setup, I can go back in and remove the unused ones as a hygeine PR once I get the tests in place.

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.

2 participants