gram/packages/parser/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
abiwab 9553678f4b fix(parser): stop bare @ingredient/#cookware names from swallowing a later element
simpleIngredient's and simpleCookware's "full" alternative used plain
name (stops only at {}()<|: and newlines), not refName (also stops at
@ # ~ ^ &). Any bare mention (@&chicken, #pan) followed later on the
same line by an unrelated {...} that happened to close a valid
quantity had its name greedily swallow everything in between,
including the other element's own sigil, silently losing that timer/
temperature/cookware/ingredient entirely. refName already existed and
was used by Reference and composite for exactly this reason.

Full test suite, conformance suite, and the audit/ tool's self-test
all pass with no golden changes needed.
2026-07-25 16:09:02 +02:00
..
ast-shape.test.ts fix(parser): make ASTNode an exhaustive discriminated union, remove as-casts 2026-07-24 16:16:15 +02:00
grammar-edge-cases.test.ts fix(parser): stop bare @ingredient/#cookware names from swallowing a later element 2026-07-25 16:09:02 +02:00
numbers.test.ts refactor(parser): extract numbers.ts, fix decimal-numerator truncation and zero-denominator Infinity 2026-07-24 13:56:27 +02:00