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
+2 -2
View File
@@ -271,7 +271,7 @@ func TestReferenceOverlapIsRejected(t *testing.T) {
"a bare reference beside a path into what it never renders": `{"format":"{a} {b}","a":"{/cat}","b":"{/cat.p.first}"}`,
} {
_, err := New(WithoutShippedData(), WithDataPath(writeData(t, map[string]string{"cat": cat, "row": row})))
if err == nil || !strings.Contains(err.Error(), "reads whole the reference draw") {
if err == nil || !strings.Contains(err.Error(), "share one reference draw") {
t.Errorf("%s: New = %v, want the overlap rejected", name, err)
}
}
@@ -413,7 +413,7 @@ func TestSpellingsOfOneReferenceAreOneLevel(t *testing.T) {
"sv_SE/person": person,
"sv_SE/mail": `"{.person} <{/sv_SE.person.first}>"`,
})))
if err == nil || !strings.Contains(err.Error(), "reads whole the reference draw") || !strings.Contains(err.Error(), "{.person}") {
if err == nil || !strings.Contains(err.Error(), "share one reference draw") || !strings.Contains(err.Error(), "{.person}") {
t.Errorf("New = %v, want the bare spelling rejected beside the path spelling", err)
}
dir := writeData(t, map[string]string{