Jinja Compat Tests

Enabled engines

range function

Template

{% for i in 5..10 %}{{ i }} {% endfor %}

v1.10.1

(error) v2.8.0

expected name or number

(error) v3.0.6

(no output)

(error) v2.5.0

 [Line 1, Column 14]
  expected block end in for statement

(error) v1.4.2

Unexpected number "5" on line 1.

v1.24.2

5 6 7 8 9 10 

v0.9.5

5 6 7 8 9 10 

Template

{% for i in range(5, 10, 2.5) %}{{ i }} {% endfor %}

(error) v1.10.1

'for' statements should use the format 'for x in y': for i in range(5, 10, 2.5)

(error) v2.8.0

integer argument expected, got float

(error) v3.0.6

(no output)

v2.5.0

5 7.5 

(error) v1.4.2

(no output)

v1.24.2

5 7.5 10 

v0.9.5

5 7.5 10 

Template

{% for i in range(-5, 5) %}{{ i }} {% endfor %}

(error) v1.10.1

'for' statements should use the format 'for x in y': for i in range(-5, 5)

v2.8.0

-5 -4 -3 -2 -1 0 1 2 3 4 

(error) v3.0.6

(no output)

v2.5.0

-5 -4 -3 -2 -1 0 1 2 3 4 

(error) v1.4.2

(no output)

v1.24.2

-5 -4 -3 -2 -1 0 1 2 3 4 5 

v0.9.5

-5 -4 -3 -2 -1 0 1 2 3 4 5 

Template

{% for i in range(10, 5, -1) %}{{ i }} {% endfor %}

(error) v1.10.1

'for' statements should use the format 'for x in y': for i in range(10, 5, -1)

v2.8.0

10 9 8 7 6 

(error) v3.0.6

(no output)

v2.5.0

10 9 8 7 6 

(error) v1.4.2

(no output)

v1.24.2

10 9 8 7 6 5 

(error) v0.9.5

(out of memory)

Template

{% for i in range(5, 10, 2) %}{{ i }} {% endfor %}

(error) v1.10.1

'for' statements should use the format 'for x in y': for i in range(5, 10, 2)

v2.8.0

5 7 9 

(error) v3.0.6

(no output)

v2.5.0

5 7 9 

(error) v1.4.2

(no output)

v1.24.2

5 7 9 

v0.9.5

5 7 9 

Template

{% for i in range(5, 10) %}{{ i }} {% endfor %}

(error) v1.10.1

'for' statements should use the format 'for x in y': for i in range(5, 10)

v2.8.0

5 6 7 8 9 

(error) v3.0.6

(no output)

v2.5.0

5 6 7 8 9 

(error) v1.4.2

(no output)

v1.24.2

5 6 7 8 9 10 

v0.9.5

5 6 7 8 9 10 

Template

{% for i in range(10) %}{{ i }} {% endfor %}

(error) v1.10.1

Could not parse the remainder: '(10)' from 'range(10)'

v2.8.0

0 1 2 3 4 5 6 7 8 9 

(error) v3.0.6

(no output)

v2.5.0

0 1 2 3 4 5 6 7 8 9 

(error) v1.4.2

(no output)

(error) v1.24.2

(no output)

v0.9.5

10 9 8 7 6 5 4 3 2 1 0