You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
latex and typst output have no structural tests #416
The LaTeX and Typst output formats have no tests that pin their structure. The five existing CLI tests assert only that the paper-size and margin substrings appear.
A regression that broke \begin/\end pairing, emitted malformed preamble, or mangled ingredient markup would pass the suite, because nothing inspects the document body.
For comparison, the other formats are better served:
-f jsonld — tests/schema_output_test.rs, 18 tests parsing the JSON and asserting fields
One golden-output test per format, snapshotting a representative recipe that exercises ingredients, cookware, timers, sections and metadata. That is enough to catch structural breakage without pinning every formatting detail.
Noticed while extracting the formatters into a library crate, where these two are reachable directly by consumers with no CLI in the loop.
Activity
test(recipe): pin the structure of latex, typst and cooklang output