Pin the reference-draw overlap to wording true of a path and of a family table
This commit is contained in:
+3
-3
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user