diff --git a/mustache_test.go b/mustache_test.go index b24c20c..d6183e6 100644 --- a/mustache_test.go +++ b/mustache_test.go @@ -161,6 +161,9 @@ var tests = []Test{ {`{{#categories}}{{DisplayName}}{{/categories}}`, map[string][]*Category{ "categories": {&Category{"a", "b"}}, }, "a - b"}, + + //invalid syntax - https://github.com/hoisie/mustache/issues/10 + {`{{#a}}{{#b}}{{/a}}{{/b}}}`, map[string]interface{}{}, "line 1: interleaved closing tag: a"}, } func TestBasic(t *testing.T) {