Skip to content

Commit

Permalink
Adding a test case for mixing {%- and %} tags together.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 29, 2011
1 parent a615a3c commit 36516f6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/Twig/Tests/Fixtures/tags/trim_block.test
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,23 @@ Whitespace trimming on tags.
<li>{{ trailing }}</li>
{%- endif -%}
</ul>

<ul>
{%- if mixed %}
<li>{{ mixed }}</li>
{% endif -%}
</ul>
--DATA--
return array('string' => 'a value', 'trailing' => 'trailing tabs')
return array('string' => 'a value', 'trailing' => 'trailing tabs', 'mixed' => 'mixed tags')
--EXPECT--
<ul>
<li>a value</li>
</ul>

<ul>
<li>trailing tabs</li>
</ul>
</ul>

<ul>
<li>mixed tags</li>
</ul>

0 comments on commit 36516f6

Please sign in to comment.