Skip to content
Myr

fix the abs filter test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Ronny Pfannschmidt · committed by Ronny Pfannschmidt · parent 0d94e08 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/testsuite/filters.py+1 added-1 removed
204 unmodified lines
205 assert tmpl.render() == '21'206207 def test_abs(self):208 tmpl = env.from_string('''{{ -1|abs }}|{{ 1|abs }}''')209 return tmpl.render() == '1|1'209 assert tmpl.render() == '1|1', tmpl.render()210211 def test_round_positive(self):212 tmpl = env.from_string('{{ 2.7|round }}|{{ 2.1|round }}|'213 "{{ 2.1234|round(3, 'floor') }}|"
78 unmodified lines