Jinja Compat Tests

Enabled engines

int filter

Template

{{ "0x4d32"|int(0, 16) }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

19762

v3.0.6

0x4d32

v2.5.0

0

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int

Template

{{ "011"|int(0, 8) }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

9

v3.0.6

011

v2.5.0

11

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int

Template

{{ ""|int(5) }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

5

(error) v3.0.6

(no output)

v2.5.0

5

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int

Template

{{ 3.52|int }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

3

v3.0.6

3.52

v2.5.0

3

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int

Template

{{ ""|int }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

0

(error) v3.0.6

(no output)

(error) v2.5.0

(no output)

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int

Template

{{ 3|int }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

3

v3.0.6

3

v2.5.0

3

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int

Template

{{ "3.52"|int }}

(error) v1.10.1

Invalid filter: 'int'

v2.8.0

3

v3.0.6

3.52

v2.5.0

3

(error) v1.4.2

Invalid filter "int".

(error) v1.24.2

Unknown "int" filter.

(error) v0.9.5

Unable to find filter int