From efbe47b1625422f21bb2f130f916ce040756dbe3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 6 Jul 2020 12:27:01 -0400 Subject: html/template: add tests from text/template Copy and adapt tests from text/template, to exercise more of html/template's copy. Various differences in behavior are flagged with NOTE comments or t.Skip and documented in #40075. Many of them are probably bugs. One clarifying test case added to both text/template and html/template. No changes to the package itself. Change-Id: Ifefad83d647db846040d24c2741a0244b00ade82 Reviewed-on: https://go-review.googlesource.com/c/go/+/241084 Run-TryBot: Russ Cox TryBot-Result: Gobot Gobot Reviewed-by: Rob Pike --- src/text/template/multi_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/text') diff --git a/src/text/template/multi_test.go b/src/text/template/multi_test.go index bf1f1b2701..34d2378e38 100644 --- a/src/text/template/multi_test.go +++ b/src/text/template/multi_test.go @@ -359,6 +359,7 @@ func TestEmptyTemplate(t *testing.T) { in string want string }{ + {[]string{"x", "y"}, "", "y"}, {[]string{""}, "once", ""}, {[]string{"", ""}, "twice", ""}, {[]string{"{{.}}", "{{.}}"}, "twice", "twice"}, -- cgit v1.3-6-g1900