diff options
Diffstat (limited to 'src/html/template/escape_test.go')
| -rw-r--r-- | src/html/template/escape_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/html/template/escape_test.go b/src/html/template/escape_test.go index 9c9502a617..6729ebf4a7 100644 --- a/src/html/template/escape_test.go +++ b/src/html/template/escape_test.go @@ -1547,6 +1547,16 @@ func TestEnsurePipelineContains(t *testing.T) { "($).X | urlquery | html | print", []string{"urlquery", "html"}, }, + { + "{{.X | print 2 | .f 3}}", + ".X | print 2 | .f 3 | urlquery | html", + []string{"urlquery", "html"}, + }, + { + "{{.X | html | print 2 | .f 3}}", + ".X | urlquery | html | print 2 | .f 3", + []string{"urlquery", "html"}, + }, } for i, test := range tests { tmpl := template.Must(template.New("test").Parse(test.input)) |
