mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
cleaned up tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user