From 14952d0c0685c04149464cdbe6cd8f96f8d8ba37 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 16:17:08 +0200 Subject: [PATCH] Test that a repeated bare reference beside its path names the draw fence's refusal --- inline_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/inline_test.go b/inline_test.go index fb97109..c908c50 100644 --- a/inline_test.go +++ b/inline_test.go @@ -110,6 +110,7 @@ func TestFakeTemplateErrors(t *testing.T) { {`{"format":"x"}`, "is a string"}, {`{/misc.territory} {/misc.territory.alpha2}`, "{/misc.territory} renders its own draw of what {/misc.territory.alpha2} reads a path through; name the fields you want instead, or move {/misc.territory.alpha2} into a field with a drawGroup"}, {`{"format":"{/misc.territory.alpha2} {x}","x":"{/misc.territory}"}`, "renders its own draw of what"}, + {`{/misc.territory} {/misc.territory} {/misc.territory.alpha2}`, "{/misc.territory} renders its own draw of what {/misc.territory.alpha2} reads"}, {`{"format":"{/misc.territory.alpha2}","drawGroup":"g"}`, "nothing can reference"}, } { _, err := f.FakeTemplate(c.input)