Skip to content

Commit

Permalink
Merge pull request spullara#54 from nicoulaj/issue-53
Browse files Browse the repository at this point in the history
Add test for spullara#53
  • Loading branch information
spullara committed Oct 10, 2012
2 parents 6d4f0b7 + d2942e3 commit 09a8a9f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ public void testRecurision() throws IOException {

}

public void testRecursionWithInheritance() throws IOException {
MustacheFactory c = createMustacheFactory();
Mustache m = c.compile("recursion_with_inheritance.html");
StringWriter sw = new StringWriter();
m.execute(sw, new Object() {
Object value = new Object() {
boolean value = false;
};
});
assertEquals(getContents(root, "recursion.txt"), sw.toString());
}

public void testSimplePragma() throws MustacheException, IOException, ExecutionException, InterruptedException {
MustacheFactory c = createMustacheFactory();
Mustache m = c.compile("simplepragma.html");
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/recursion_with_inheritance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{<recursion}}
{{/recursion}}

0 comments on commit 09a8a9f

Please sign in to comment.