Repository navigation
test: Run the dictionary harnesses in a project of their own - #44
Merged
Merged
Conversation
The eight dictionary harnesses are 60MB and 1,953,878 cases between them, about two minutes against the spec suite's twenty seconds. They all pass against 3.40.0, so leaving them out of LibLouis.NET.Test cost the tables' word lists rather than hiding a failure, but nothing ran them. LibLouis.NET.DictionaryTest runs them. It reads them from the release build/stage_tables.sh already downloads rather than from a committed copy, so the repository does not grow by 60MB and they follow LiblouisVersion with nothing to re-copy. They are listed one by one: a wildcard on "dictionary" also matches nine ordinary specs LibLouis.NET.Test already runs. The build fails, naming stage_tables.sh, if they have not been staged, rather than discovering no tests. The harness moves out of BrailleSpecTests into BrailleSpecRunner so both projects compile the same one. The code moves unchanged. CI runs them in a dictionary-test job on the same three operating systems as test, beside it rather than after it, so pull requests wait no longer and a failure among them is reported apart from the main suite. publish waits for it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-opens #43 against
main. #43 merged intotest/separate-display-table38 seconds after #40 had already merged that branch intomain, so its commit never reachedmain. This is the same commit (128b26e), unchanged.main's tree is identical to the commit it was built on, so it merges cleanly.Runs upstream's eight dictionary harnesses from liblouis 3.40.0: 1,953,878 cases, all passing.
What changed
LibLouis.NET.DictionaryTest. It reads the harnesses from the releasebuild/stage_tables.shalready downloads (upstream/liblouis-$(LiblouisVersion)/tests/braille-specs/) rather than committing 60MB, so they followLiblouisVersionwith nothing to re-copy. The files are listed one by one, because a*dictionary*wildcard also matches nine ordinary specs. If they haven't been staged, the build fails and says to runstage_tables.sh, rather than discovering no tests.BrailleSpecTestsintoBrailleSpecRunner.cs. Both projects compile that same file.dictionary-testjob runs on ubuntu, windows and macos. It runs besidetestrather than after it, so a dictionary failure is its own check.publishnow waits for it too.Testing
On #43's CI run,
dictionary testpassed 8/8 on all three runners (macOS 2m36s, ubuntu 51s, windows 1m17s of test time), and every other job passed. Locally on macOS arm64:LibLouis.NET.Test237/237 andLibLouis.NET.DictionaryTest8/8.🤖 Generated with Claude Code