From 6e2b74d65e84938fdc05f2de40bcfe15efadc693 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Tue, 4 Oct 2005 19:34:43 +0000 Subject: i18n: merged r722:774 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@775 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/othertests/templates.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index 9b70230537..e73163aabc 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -108,6 +108,10 @@ TEMPLATE_TESTS = { ### FOR TAG ############################################################### 'for-tag01': ("{% for val in values %}{{ val }}{% endfor %}", {"values": [1, 2, 3]}, "123"), 'for-tag02': ("{% for val in values reversed %}{{ val }}{% endfor %}", {"values": [1, 2, 3]}, "321"), + 'for-tag-vars01': ("{% for val in values %}{{ forloop.counter }}{% endfor %}", {"values": [6, 6, 6]}, "123"), + 'for-tag-vars02': ("{% for val in values %}{{ forloop.counter0 }}{% endfor %}", {"values": [6, 6, 6]}, "012"), + 'for-tag-vars03': ("{% for val in values %}{{ forloop.revcounter }}{% endfor %}", {"values": [6, 6, 6]}, "321"), + 'for-tag-vars04': ("{% for val in values %}{{ forloop.revcounter0 }}{% endfor %}", {"values": [6, 6, 6]}, "210"), ### IFEQUAL TAG ########################################################### 'ifequal01': ("{% ifequal a b %}yes{% endifequal %}", {"a": 1, "b": 2}, ""), -- cgit v1.3