aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/text/template/parse/parse_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-28 14:23:57 +1100
committerRob Pike <r@golang.org>2012-02-28 14:23:57 +1100
commit180541b2b1bde56f31d0f895a12c25bb01d8c58b (patch)
treeb24dff70b60613dc7f566b73bc2f4c0cf61f1e93 /src/pkg/text/template/parse/parse_test.go
parent69015b6fc467a9e0d5772794f15476da458d7cc5 (diff)
downloadgo-180541b2b1bde56f31d0f895a12c25bb01d8c58b.tar.xz
text/template: fix redefinition bugs
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5696087
Diffstat (limited to 'src/pkg/text/template/parse/parse_test.go')
-rw-r--r--src/pkg/text/template/parse/parse_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/text/template/parse/parse_test.go b/src/pkg/text/template/parse/parse_test.go
index efa7d8be74..18c0a8b835 100644
--- a/src/pkg/text/template/parse/parse_test.go
+++ b/src/pkg/text/template/parse/parse_test.go
@@ -287,6 +287,9 @@ var isEmptyTests = []isEmptyTest{
}
func TestIsEmpty(t *testing.T) {
+ if !IsEmptyTree(nil) {
+ t.Errorf("nil tree is not empty")
+ }
for _, test := range isEmptyTests {
tree, err := New("root").Parse(test.input, "", "", make(map[string]*Tree), nil)
if err != nil {