added tests for bitwise operators
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 8 May 2012 06:30:42 +0000 (08:30 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 8 May 2012 06:30:42 +0000 (08:30 +0200)
test/Twig/Tests/Fixtures/expressions/bitwise.test [new file with mode: 0644]

diff --git a/test/Twig/Tests/Fixtures/expressions/bitwise.test b/test/Twig/Tests/Fixtures/expressions/bitwise.test
new file mode 100644 (file)
index 0000000..911094c
--- /dev/null
@@ -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