From: Fabien Potencier Date: Tue, 8 May 2012 06:30:42 +0000 (+0200) Subject: added tests for bitwise operators X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=52cc3817a8330b721b685f6341d712e337a83a5a;p=web%2Fkonrad%2Ftwig.git added tests for bitwise operators --- diff --git a/test/Twig/Tests/Fixtures/expressions/bitwise.test b/test/Twig/Tests/Fixtures/expressions/bitwise.test new file mode 100644 index 0000000..911094c --- /dev/null +++ b/test/Twig/Tests/Fixtures/expressions/bitwise.test @@ -0,0 +1,12 @@ +--TEST-- +Twig supports bitwise operations +--TEMPLATE-- +{{ 1 b-and 5 }} +{{ 1 b-or 5 }} +{{ 1 b-xor 5 }} +--DATA-- +return array() +--EXPECT-- +1 +5 +4