added a test to verify that the merge filter actually behaves like said in the documentation (closes #789)

This commit is contained in:
Fabien Potencier
2012-07-28 10:32:10 +02:00
parent 657de7bdeb
commit 51c866f415
+3 -1
View File
@@ -5,10 +5,12 @@
{{ items|merge({'bar': 'foo'})|keys|join }}
{{ {'bar': 'foo'}|merge(items)|join }}
{{ {'bar': 'foo'}|merge(items)|keys|join }}
{{ numerics|merge([4, 5, 6])|join }}
--DATA--
return array('items' => array('foo' => 'bar'))
return array('items' => array('foo' => 'bar'), 'numerics' => array(1, 2, 3))
--EXPECT--
barfoo
foobar
foobar
barfoo
123456