diff options
Diffstat (limited to 'src/pkg/text/template/parse/lex_test.go')
| -rw-r--r-- | src/pkg/text/template/parse/lex_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/text/template/parse/lex_test.go b/src/pkg/text/template/parse/lex_test.go index ae90ae407b..e72e07f269 100644 --- a/src/pkg/text/template/parse/lex_test.go +++ b/src/pkg/text/template/parse/lex_test.go @@ -340,6 +340,9 @@ var lexTests = []lexTest{ {itemText, 0, "hello-"}, {itemError, 0, `comment ends before closing delimiter`}, }}, + {"unmatched right delimiter", "hello-{.}}-world", []item{ + {itemError, 0, `unmatched right delimiter`}, + }}, } // collect gathers the emitted items into a slice. |
