mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Add test for 'in' operator
This commit is contained in:
parent
0339a12b3d
commit
0592e248e2
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user