Skip to content

Commit

Permalink
More safety tests
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Oct 1, 2012
1 parent bdace20 commit 09d0eaa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/Public/v5.0/GRMustacheSuites/inverted_sections.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
"template": "<{{^subject}}---{{/subject}}>", "template": "<{{^subject}}---{{/subject}}>",
"expected": "<>" "expected": "<>"
}, },
{
"name": "List made of an empty list should trigger the section omission.",
"data": { "subject": [[]] },
"template": "<{{^subject}}---{{/subject}}>",
"expected": "<>"
},


// Whitespace Insensitivity // Whitespace Insensitivity


Expand Down
6 changes: 6 additions & 0 deletions src/tests/Public/v5.0/GRMustacheSuites/sections.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
"template": "<{{#subject}}---{{/subject}}>", "template": "<{{#subject}}---{{/subject}}>",
"expected": "<--->" "expected": "<--->"
}, },
{
"name": "List made of an empty list should trigger the section rendering.",
"data": { "subject": [[]] },
"template": "<{{#subject}}---{{/subject}}>",
"expected": "<--->"
},


// Context stack // Context stack


Expand Down

0 comments on commit 09d0eaa

Please sign in to comment.