Skip to content

test: require meaningful corpus and embedded-font checks - #1155

Merged
andiwand merged 2 commits into
mainfrom
review/137-corpus-checks
Oct 6, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/137-corpus-checks

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Corpus checks could pass after examining no usable files or answers. Capability checks now try later candidates when opening or rendering fails, require a successful check when candidates exist, and explicitly skip when the corpus is unavailable. Formula comparisons skip empty corpora and require at least one evaluated result.

The font checker used the start of the whole @font-face match instead of its captured body, counting declared fonts again as orphan embeddings. Correct the offset and fail when no HTML files were found.

Validation: the two font regressions fail on the parent and pass with the fix; all seven script tests pass. Both capability tests and the formula corpus pass, comparing 14,970 of 15,160 formulas with no mismatches. The corrected checker reports 7 distinct fonts and 17 embeddings for the generated style-various PDF output, with zero OTS rejections. No additional C++ test suites were added.

@andiwand
andiwand force-pushed the review/136-pdf-file-indices branch from 98cdcc8 to e9a40f9 Compare October 6, 2026 18:04
Base automatically changed from review/136-pdf-file-indices to main October 6, 2026 18:08
andiwand and others added 2 commits October 6, 2026 20:08
The rewrite dropped the comments that say why the checks look the way
they do: why one page is enough, why detection may go by name, why the
actual file type decides for an encrypted OOXML package, and why a plain
text file is checked apart. They stand again, and the upper-bound note
now says that one file of a type has to pass.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MxyTMutqSUJRGfxA8CyzMc
@andiwand
andiwand force-pushed the review/137-corpus-checks branch from eec6133 to 1a56bc6 Compare October 6, 2026 18:09
@andiwand
andiwand merged commit 01366eb into main Oct 6, 2026
21 of 23 checks passed
@andiwand
andiwand deleted the review/137-corpus-checks branch October 6, 2026 18:14
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