Jinja Compat Tests

Enabled engines

abs filter

Template

{{ -3.14|abs }}

(error) v1.10.1

Invalid filter: 'abs'

v2.8.0

3.14

v3.0.6

-3.14

v2.5.0

3.14

(error) v1.4.2

Invalid filter "abs".

v1.24.2

-3.14

v0.9.5

3.14

Template

{{ -3|abs }}

(error) v1.10.1

Invalid filter: 'abs'

v2.8.0

3

v3.0.6

-3

v2.5.0

3

(error) v1.4.2

Invalid filter "abs".

v1.24.2

-3

v0.9.5

3

Template

{{ 3.14|abs }}

(error) v1.10.1

Invalid filter: 'abs'

v2.8.0

3.14

v3.0.6

3.14

v2.5.0

3.14

(error) v1.4.2

Invalid filter "abs".

v1.24.2

3.14

v0.9.5

3.14

Template

{{ 3|abs }}

(error) v1.10.1

Invalid filter: 'abs'

v2.8.0

3

v3.0.6

3

v2.5.0

3

(error) v1.4.2

Invalid filter "abs".

v1.24.2

3

v0.9.5

3

Template

{{ '-3.14'|abs }}

(error) v1.10.1

Invalid filter: 'abs'

(error) v2.8.0

bad operand type for abs(): 'str'

v3.0.6

-3.14

v2.5.0

3.14

(error) v1.4.2

Invalid filter "abs".

v1.24.2

3.14

v0.9.5

3.14

Template

{{ x|abs }}

Data

{
  "x": -3
}

(error) v1.10.1

Invalid filter: 'abs'

v2.8.0

3

v3.0.6

-3

v2.5.0

3

(error) v1.4.2

Invalid filter "abs".

v1.24.2

3

v0.9.5

3

Template

{{ 0|abs }}

(error) v1.10.1

Invalid filter: 'abs'

v2.8.0

0

v3.0.6

0

v2.5.0

0

(error) v1.4.2

Invalid filter "abs".

v1.24.2

0

v0.9.5

0