Skip to content

test: share SFNT fixtures and consolidate reencode checks - #1062

Merged
andiwand merged 2 commits into
mainfrom
review/44-font-test-fixtures
Oct 5, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/44-font-test-fixtures

Conversation

@andiwand

@andiwand andiwand commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Share raw SFNT fixture builders across the font reader, writer, public font API and PDF font tests. The fixtures remain independent of production serialization, so reader checks still catch writer mistakes.

Combine two pairs of re-encoding tests while retaining assertions before and after serialization. This removes 217 lines and two overlapping tests without reducing the checked behavior.

Validation: rebuilt odr_test; all 84 targeted SFNT, font API, PDF font, CFF and Type1 tests passed.

Test-only change.

@andiwand
andiwand force-pushed the review/43-cff-builder branch from 772a392 to 2db849a Compare October 5, 2026 13:05
Base automatically changed from review/43-cff-builder to main October 5, 2026 13:16
andiwand and others added 2 commits October 5, 2026 15:16
The other test utilities, like type1_test_util.hpp, are included by their
path below the library headers, not by a relative quoted path.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand
andiwand force-pushed the review/44-font-test-fixtures branch from 5b5ca59 to d07b544 Compare October 5, 2026 13:20
@andiwand
andiwand merged commit d097eb4 into main Oct 5, 2026
23 checks passed
@andiwand
andiwand deleted the review/44-font-test-fixtures branch October 5, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant