aboutsummaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-07-06 12:27:01 -0400
committerRuss Cox <rsc@golang.org>2020-07-14 16:54:25 +0000
commitefbe47b1625422f21bb2f130f916ce040756dbe3 (patch)
tree4007ee6438314a4bb1fef4a87ec8c2cc0a791b66 /src/text
parente88ea87e7b886815cfdadc4cd3d70bf5ef833bd7 (diff)
downloadgo-efbe47b1625422f21bb2f130f916ce040756dbe3.tar.gz
go-efbe47b1625422f21bb2f130f916ce040756dbe3.zip
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 <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/text')
-rw-r--r--src/text/template/multi_test.go1
1 files changed, 1 insertions, 0 deletions
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"},