From bcf850da509b4e9bdec8c2cce9c3cf4587d85b58 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 30 Oct 2012 18:12:52 +0100 Subject: [PATCH] fixed a stupid test --- test/Twig/Tests/Fixtures/expressions/bitwise.test | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.2.5