unary.test

File

drupal/core/vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/unary.test
View source
--TEST--
Twig supports unary operators (not, -, +)
--TEMPLATE--
{{ not 1 }}/{{ not 0 }}
{{ +1 + 1 }}/{{ -1 - 1 }}
{{ not (false or true) }}
--DATA--
return array()
--EXPECT--
/1
2/-2