Add test for 'in' operator

This commit is contained in:
bzick 2015-02-01 00:35:41 +03:00
parent 0339a12b3d
commit 0592e248e2
1 changed files with 1 additions and 0 deletions

View File

@ -1184,6 +1184,7 @@ class TemplateTest extends TestCase
array('{if $one in ["one", "two", "three"]} block1 {else} block2 {/if}', 'block2'),
array('{if $one in keys [1 => "one", 2 => "two", 3 => "three"]} block1 {else} block2 {/if}', 'block1'),
array('{if $one in $two} block1 {else} block2 {/if}', 'block2'),
array('{if $one in $list} block1 {else} block2 {/if}', 'block1'),
);
}