Skip to content

Commit

Permalink
Failing tests for #46
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Mar 3, 2013
1 parent 25e586f commit 5db8560
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/tests/Public/v6.0/GRMustacheSuites/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,66 @@
"data": { "subject": "--- " },
"template": "<{{subject}}>",
"expected": "<--- >"
},
{
"name": "Lines containing a single empty variable tag are not rendered.",
"data": { "present": "---" },
"template": "{{present}}\n{{missing}}",
"expected": "---\n"
},
{
"name": "Lines containing a single empty variable tag are not rendered.",
"data": { "present": "---" },
"template": "{{missing}}\n{{present}}",
"expected": "---"
},
{
"name": "Lines containing a single empty variable tag are not rendered.",
"data": { "present": "---" },
"template": "{{present}}\n{{missing}}\n",
"expected": "---\n"
},
{
"name": "Lines containing a single empty variable tag are not rendered.",
"data": { "present": "---" },
"template": "{{missing}}\n{{present}}\n",
"expected": "---\n"
},
{
"name": "Lines containing a single empty variable tag are not rendered.",
"data": { "present": "---" },
"template": "{{present}}\n{{missing}}\n{{missing}}\n{{present}}\n{{missing}}\n{{present}}\n",
"expected": "---\n---\n---\n"
},
{
"name": "Lines containing a single empty variable tag surrounded by white space are not rendered.",
"data": { "present": "---" },
"template": " {{present}} \n {{missing}} ",
"expected": " --- \n"
},
{
"name": "Lines containing a single empty variable tag surrounded by white space are not rendered.",
"data": { "present": "---" },
"template": " {{missing}} \n {{present}} ",
"expected": " --- "
},
{
"name": "Lines containing a single empty variable tag surrounded by white space are not rendered.",
"data": { "present": "---" },
"template": " {{present}} \n {{missing}} \n",
"expected": " --- \n"
},
{
"name": "Lines containing a single empty variable tag surrounded by white space are not rendered.",
"data": { "present": "---" },
"template": " {{missing}} \n {{present}} \n",
"expected": " --- \n"
},
{
"name": "Lines containing a single empty variable tag surrounded by white space are not rendered.",
"data": { "present": "---" },
"template": " {{present}} \n {{missing}} \n {{missing}} \n {{missing}} \n {{present}} \n {{missing}} \n {{present}} \n",
"expected": " --- \n --- \n --- \n"
}
]
}

0 comments on commit 5db8560

Please sign in to comment.