Adding a test case for mixing {%- and %} tags together.
authorMark Story <mark@mark-story.com>
Wed, 23 Mar 2011 03:08:51 +0000 (23:08 -0400)
committerMark Story <mark@mark-story.com>
Tue, 29 Mar 2011 02:12:59 +0000 (22:12 -0400)
test/Twig/Tests/Fixtures/tags/trim_block.test

index 341a281..ccd5329 100644 (file)
@@ -12,8 +12,14 @@ 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>
@@ -21,4 +27,8 @@ return array('string' => 'a value', 'trailing' => 'trailing tabs')
 
        <ul>
                <li>trailing tabs</li>
-       </ul>
\ No newline at end of file
+       </ul>
+
+    <ul>
+        <li>mixed tags</li>
+        </ul>