diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py
index 9e2d175..2047d70 100644
a
|
b
|
class Templates(unittest.TestCase):
|
1119 | 1119 | # translation of plural form with extra field in singular form (#13568) |
1120 | 1120 | 'i18n26': ('{% load i18n %}{% blocktrans with myextra_field as extra_field count number as counter %}singular {{ extra_field }}{% plural %}plural{% endblocktrans %}', {'number': 1, 'myextra_field': 'test'}, "singular test"), |
1121 | 1121 | |
| 1122 | # test example from the documentation (#14126) |
| 1123 | 'i18n27': ('{% load i18n %}{% blocktrans with myextra_field as extra_field count number_list|length as counter %}singular {{ extra_field }}{% plural %}plural{% endblocktrans %}', {'number_list': [1], 'myextra_field': 'test'}, "singular test"), |
| 1124 | 'i18n28': ('{% load i18n %}{% blocktrans with myextra_field as extra_field count number_list|length as counter %}singular {{ extra_field }}{% plural %}plural{% endblocktrans %}', {'number_list': [1, 2], 'myextra_field': 'test'}, "plural"), |
| 1125 | |
1122 | 1126 | ### HANDLING OF TEMPLATE_STRING_IF_INVALID ################################### |
1123 | 1127 | |
1124 | 1128 | 'invalidstr01': ('{{ var|default:"Foo" }}', {}, ('Foo','INVALID')), |