diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-19 08:09:12 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-19 08:09:12 +0200 |
| commit | a526d934cea17ff1b76ddad5c5f2934fb85c11cb (patch) | |
| tree | e9fad9bb85fe265e5e8777704da6ba85b77fe122 /test/test_precedence_ef.ml | |
| parent | eacb54ae44f655c010fdfc2b7292d24f06ffc445 (diff) | |
| download | colitur-a526d934cea17ff1b76ddad5c5f2934fb85c11cb.tar.gz colitur-a526d934cea17ff1b76ddad5c5f2934fb85c11cb.zip | |
fix(render): reject empty tag paths, sharpen the raw-form test
F1: test_no_raw_or_partial_form's first assertion only excluded one
literal shape (Ok [Var ["{name"]]), so it could not actually catch a
future raw/unescaped constructor under a different name. Replace it
with an assertion of the real parse result for {{{name}}}
(Ok [Var ["{name"]; Text "}"]), documented behaviour rather than a
guarantee this test cannot check -- the real guarantee is structural:
node has exactly four constructors and none of them is raw.
F2: {{.}}, {{#}}, {{^}} and {{/}} used to parse to a Var/Section/
Inverted with an empty path, reachable but never designed. This engine
has no "current context" for a bare dot to mean, so a bare-dot or
empty-sigil path is now a parse error at lex time, covering all four
sigil forms via one path helper. The existing "empty tag {{}}" branch
is unchanged and still reachable (a fully empty body is a distinct
case from a sigil with an empty path).
Diffstat (limited to 'test/test_precedence_ef.ml')
0 files changed, 0 insertions, 0 deletions
