Pin the reference-draw overlap to wording true of a path and of a family table

This commit is contained in:
2026-09-29 14:53:14 +02:00
committed by Lillem4n
parent 2e57a38e0b
commit 7cb07bfc5d
5 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -367,8 +367,8 @@ func TestTableSelectorInAReference(t *testing.T) {
func TestTableSelectionFences(t *testing.T) {
rejected := map[string]struct{ json, want string }{
"bare beside a path": {`"{/region} {/region.name}"`, "reads whole the reference draw"},
"bare beside a linked path": {`"{/region} {/locality.name}"`, "drawGroup"},
"bare beside a path": {`"{/region} {/region.name}"`, "share one reference draw"},
"bare beside a linked path": {`"{/region} {/locality.name}"`, "share one reference draw"},
"selected beside unselected": {`"{/region[12].municipality.name} {/municipality.code}"`, "{/region[12].municipality.code}"},
"relative selected beside unselected": {`"{.region[12].municipality.name} {.municipality.code}"`, "{.region[12].municipality.code}"},
"two selections": {`"{/region[12].name} {/region[14].name}"`, "drawGroup"},
@@ -1120,7 +1120,7 @@ func TestCellReadsMeetWhereTheRenderPairsTheRows(t *testing.T) {
"region.json": `{"format":"{name}={note}","rows":"region.tsv","key":"code","name":"name","weight":"population"}`,
"x.json": `"{/region}|{/municipality}"`,
})
if _, err := New(WithoutShippedData(), WithDataPath(writeFiles(t, whole)), WithSeed(1)); err == nil || !strings.Contains(err.Error(), "reads whole the reference draw") {
if _, err := New(WithoutShippedData(), WithDataPath(writeFiles(t, whole)), WithSeed(1)); err == nil || !strings.Contains(err.Error(), "share one reference draw") {
t.Fatalf("New = %v, want the two drawn rows held to one draw of addr", err)
}
nested := with(whole, map[string]string{