projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e6c94af635b45d42874ef602b2e7f83ea59317dd
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
functions
/
max.test
1
--TEST--
2
"max" function
3
--TEMPLATE--
4
{{ max([2, 1, 3, 5, 4]) }}
5
{{ max(2, 1, 3, 5, 4) }}
6
{{ max({2:"two", 1:"one", 3:"three", 5:"five", 4:"for"}) }}
7
--DATA--
8
return array()
9
--EXPECT--
10
5
11
5
12
two