Skip to content

Commit

Permalink
Merge pull request #31 from abh/issue-10-test
Browse files Browse the repository at this point in the history
Test for bad syntax
  • Loading branch information
hoisie committed May 14, 2013
2 parents 4d460a4 + 8dbe76d commit e3ee57d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mustache_test.go
Expand Up @@ -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) {
Expand Down

0 comments on commit e3ee57d

Please sign in to comment.