Add test for #144 (condition)

This commit is contained in:
bzick 2015-02-02 12:05:02 +03:00
parent f985fff314
commit d5417630ac

View File

@ -659,6 +659,7 @@ class TemplateTest extends TestCase
array('{$a ? "right" : "no way"}', $a),
array('{1 ? "right" : "no way"}', $a),
array('{$a == 1 ? "right" : "no way"}', $a),
array('{$a > 0 ? "right" : "no way"}', $a),
// !
array('{if $a!} right {/if}', $a),
array('{if 1!} right {/if}', $a),