Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33
+6
-5
@@ -367,11 +367,12 @@ func TestTableSelectorInAReference(t *testing.T) {
|
|||||||
|
|
||||||
func TestTableSelectionFences(t *testing.T) {
|
func TestTableSelectionFences(t *testing.T) {
|
||||||
rejected := map[string]struct{ json, want string }{
|
rejected := map[string]struct{ json, want string }{
|
||||||
"bare beside a path": {`"{/region} {/region.name}"`, "reads a path into"},
|
"bare beside a path": {`"{/region} {/region.name}"`, "reads a path into"},
|
||||||
"bare beside a linked path": {`"{/region} {/locality.name}"`, "drawGroup"},
|
"bare beside a linked path": {`"{/region} {/locality.name}"`, "drawGroup"},
|
||||||
"selected beside unselected": {`"{/region[12].municipality.name} {/municipality.code}"`, "{/region[12].municipality.code}"},
|
"selected beside unselected": {`"{/region[12].municipality.name} {/municipality.code}"`, "{/region[12].municipality.code}"},
|
||||||
"two selections": {`"{/region[12].name} {/region[14].name}"`, "drawGroup"},
|
"relative selected beside unselected": {`"{.region[12].municipality.name} {.municipality.code}"`, "{.region[12].municipality.code}"},
|
||||||
"selection beside a descendant": {`"{/region[12].name} {/locality.code}"`, "{/region[12].locality.code}"},
|
"two selections": {`"{/region[12].name} {/region[14].name}"`, "drawGroup"},
|
||||||
|
"selection beside a descendant": {`"{/region[12].name} {/locality.code}"`, "{/region[12].locality.code}"},
|
||||||
}
|
}
|
||||||
for name, c := range rejected {
|
for name, c := range rejected {
|
||||||
_, err := New(WithoutShippedData(), WithDataPath(writeFiles(t, with(geo(), map[string]string{"x.json": c.json}))))
|
_, err := New(WithoutShippedData(), WithDataPath(writeFiles(t, with(geo(), map[string]string{"x.json": c.json}))))
|
||||||
|
|||||||
Reference in New Issue
Block a user