|
|
@ -45,7 +45,6 @@ water:
|
|
|
|
water:
|
|
|
|
water:
|
|
|
|
where: "everywhere"
|
|
|
|
where: "everywhere"
|
|
|
|
nor: "any drop to drink"
|
|
|
|
nor: "any drop to drink"
|
|
|
|
temperature: 1234567890
|
|
|
|
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
data, err := ReadValues([]byte(doc))
|
|
|
|
data, err := ReadValues([]byte(doc))
|
|
|
@ -246,12 +245,6 @@ func matchValues(t *testing.T, data map[string]interface{}) {
|
|
|
|
} else if o != "everywhere" {
|
|
|
|
} else if o != "everywhere" {
|
|
|
|
t.Errorf("Expected water water everywhere")
|
|
|
|
t.Errorf("Expected water water everywhere")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if o, err := ttpl("{{.water.water.temperature}}", data); err != nil {
|
|
|
|
|
|
|
|
t.Errorf(".water.water.temperature: %s", err)
|
|
|
|
|
|
|
|
} else if o != "1234567890" {
|
|
|
|
|
|
|
|
t.Errorf("Expected water water temperature: 1234567890, got: %s", o)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func ttpl(tpl string, v map[string]interface{}) (string, error) {
|
|
|
|
func ttpl(tpl string, v map[string]interface{}) (string, error) {
|
|
|
|