cleaned up tests

This commit is contained in:
Fabien Potencier
2014-10-23 08:17:02 +02:00
parent a88500e762
commit 73baf337b2
2 changed files with 18 additions and 8 deletions
@@ -0,0 +1,18 @@
--TEST--
Twig manages negative numbers correctly
--TEMPLATE--
{{ -1 }}
{{ - 1 }}
{{ 5 - 1 }}
{{ 5-1 }}
{{ 5 + -1 }}
{{ 5 + - 1 }}
--DATA--
return array()
--EXPECT--
-1
-1
4
4
4
4
@@ -12,10 +12,6 @@ Twig manages negative numbers as default parameters
{% macro negative_number3(nb = - 1) %}{{ nb }}{% endmacro %}
{% macro positive_number1(nb = +1) %}{{ nb }}{% endmacro %}
{% macro positive_number2(nb = ++1) %}{{ nb }}{% endmacro %}
{{ -1 }}
{{ - 1 }}
{{ 5 - 1 }}
{{ 5-1 }}
--DATA--
return array()
--EXPECT--
@@ -24,7 +20,3 @@ return array()
-1
1
1
-1
-1
4
4