-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test that shows an infinite loop with an invalid mustache template
- Loading branch information
1 parent
62fff3e
commit 3e7aae9
Showing
3 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"overview": "Check Crow's behaviour when given invalid mustache templates", | ||
"tests": [ | ||
{ | ||
"name": "Missing end-tags", | ||
"desc": "Missing end-tags should fail to render ... and not enter infinite loops or other undefined behaviour", | ||
"data": { | ||
"boolean": true | ||
}, | ||
"template": "\"{{#boolean}}{{^boolean}}\"", | ||
"expected": "COMPILE EXCEPTION: crow::mustache error: open tag has no matching end tag {{# {{/ pair: boolean" | ||
} | ||
], | ||
"__ATTN__": "This file was hand-written" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters