From 52cc3817a8330b721b685f6341d712e337a83a5a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 8 May 2012 08:30:42 +0200 Subject: [PATCH] added tests for bitwise operators --- test/Twig/Tests/Fixtures/expressions/bitwise.test | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/expressions/bitwise.test 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 -- 1.7.2.5