From 1bf684aab21087eb0c5f23afc9d0737227837fef Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 24 Sep 2026 22:42:04 +0200 Subject: [PATCH] Want a cell's link-time error to name its line --- table_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/table_test.go b/table_test.go index 632f960..f7ddb13 100644 --- a/table_test.go +++ b/table_test.go @@ -480,6 +480,7 @@ func TestTableFences(t *testing.T) { "format reads into a column": {map[string]string{"t.json": `{"format":"{a.x}","rows":"t.tsv"}`, "t.tsv": "a\nx\ny\n"}, `"a"`}, "a reference into a column": {with(base, map[string]string{"t.json": `"{/region.name.x}"`}), "column"}, "a category referencing itself": {map[string]string{"t.json": `{"format":"{a}","rows":"t.tsv"}`, "t.tsv": "a\n{/t.a}\ny\n"}, "names the category it sits in"}, + "a cell repeating a reference": {with(base, map[string]string{"t.json": `{"format":"{a}","rows":"t.tsv"}`, "t.tsv": "a\nx\n{/region} {/region} {uppercase(/region)}\n"}), "t.a, line 3: token {/region} is repeated"}, } for name, c := range rejected { _, err := New(WithoutShippedData(), WithDataPath(writeFiles(t, c.files)))