Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a lower level test for numberformat when grouping is 0 and forc…

…e_grouping is True. Thanks Claude Paroz. Refs #17414.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 91f5970bb4acc84dcb92e4f4f0034fcb7aba1582 1 parent ddb2a9e
Aymeric Augustin authored December 24, 2011

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  tests/regressiontests/i18n/tests.py
2  tests/regressiontests/i18n/tests.py
@@ -329,6 +329,8 @@ def test_locale_independent(self):
329 329
             self.assertEqual(u'-66666.6', nformat(-66666.666, decimal_sep='.', decimal_pos=1))
330 330
             self.assertEqual(u'-66666.0', nformat(int('-66666'), decimal_sep='.', decimal_pos=1))
331 331
             self.assertEqual(u'10000.0', nformat(self.l, decimal_sep='.', decimal_pos=1))
  332
+            # This unusual grouping/force_grouping combination may be triggered by the intcomma filter (#17414)
  333
+            self.assertEqual(u'10000', nformat(self.l, decimal_sep='.', decimal_pos=0, grouping=0, force_grouping=True))
332 334
 
333 335
             # date filter
334 336
             self.assertEqual(u'31.12.2009 в 20:50', Template('{{ dt|date:"d.m.Y в H:i" }}').render(self.ctxt))

0 notes on commit 91f5970

Please sign in to comment.
Something went wrong with that request. Please try again.