Test the selector hint's new wording, read the row without the name
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ func TestNameErrors(t *testing.T) {
|
||||
{"padded", map[string]string{"word": `["a","b"]`, "card": `"{/word as w}{w}"`},
|
||||
`write {/word as w}`},
|
||||
{"selector after a name", map[string]string{"region.json": nameTables()["region.json"], "region.tsv": nameTables()["region.tsv"], "municipality.json": nameTables()["municipality.json"], "municipality.tsv": nameTables()["municipality.tsv"], "card": `"{/region as r}{r.name} {r.municipality[0180].name}"`},
|
||||
`read it directly, {/region.municipality[0180].name}`},
|
||||
`read the row without the name, {/region.municipality[0180].name}`},
|
||||
{"in a table's format", map[string]string{"word": `["a","b"]`, "t.json": `{"format":"{/word as w}{w}","rows":"t.tsv","key":"k"}`, "t.tsv": "k\nx\ny\n"},
|
||||
"a table binds no name"},
|
||||
{"in a field's name", map[string]string{"card": `{"format":"{a as b}","a as b":"x"}`},
|
||||
|
||||
Reference in New Issue
Block a user