projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
57806b619717f8a086ce82936b181c4b12024592
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
filters
/
round.test
1
--TEST--
2
"round" filter
3
--TEMPLATE--
4
{{ 2.7|round }}
5
{{ 2.1|round }}
6
{{ 2.1234|round(3, 'floor') }}
7
{{ 2.1|round(0, 'ceil') }}
8
9
{{ 21.3|round(-1)}}
10
{{ 21.3|round(-1, 'ceil')}}
11
{{ 21.3|round(-1, 'floor')}}
12
--DATA--
13
return array()
14
--EXPECT--
15
3
16
2
17
2.123
18
3
19
20
20
21
30
22
20