Skip to content

Compare every layout with convert by spec now that specs reach nested items - #82

Merged
peterbjohnson merged 1 commit into
devfrom
wb/t54
Sep 21, 2026
Merged

peterbjohnson merged 1 commit into
devfrom
wb/t54

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

tests/fixtures/against_convert/ (t49) builds PartsSepSol, PartPartSolSol and PartSolPartSol by a commands.json each, because when it was written no spec reached a nested item and no command wrote a part's solution. Both are on dev now: t51 (nested blocks, depth selector; tests/fixtures/specs/*_nested hold a spec per layout that assigns every block of the example) and t53 (draft part solution). The two nested folders' differs.txt still list the part solutions as differences tagged t53.

Make the comparison run the spec route for all four layouts: replace each of the three commands.json with a spec.yaml (the *_nested fixture specs, copied or referenced), delete the t53 lines from the two differs.txt and the t53 bullet from the folder README, and let the test fail if any difference remains that the file does not name. Keep docx and crlf on their commands.json. Done when tests/test_against_convert.py passes with a spec.yaml in every layout folder and no differs.txt line tagged t53.


Workbench ticket t54.

@peterbjohnson
peterbjohnson merged commit 387490b into dev Sep 21, 2026
6 checks passed
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