From: Fabien Potencier Date: Tue, 30 Oct 2012 17:12:52 +0000 (+0100) Subject: fixed a stupid test X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=bcf850da509b4e9bdec8c2cce9c3cf4587d85b58;p=web%2Fkonrad%2Ftwig.git fixed a stupid test --- diff --git a/test/Twig/Tests/Fixtures/expressions/bitwise.test b/test/Twig/Tests/Fixtures/expressions/bitwise.test index 391119f..7b56b76 100644 --- a/test/Twig/Tests/Fixtures/expressions/bitwise.test +++ b/test/Twig/Tests/Fixtures/expressions/bitwise.test @@ -4,11 +4,11 @@ Twig supports bitwise operations {{ 1 b-and 5 }} {{ 1 b-or 5 }} {{ 1 b-xor 5 }} -{{ 1 b-and 1 and 1 }} == {{ band }} +{{ (1 and 0 b-or 0) is sameas(1 and (0 b-or 0)) ? 'ok' : 'ko' }} --DATA-- -return array('band' => (1 & 1 and 1)) +return array() --EXPECT-- 1 5 4 -1 == 1 +ok