mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[1.8.x] Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertion
Report and original patch by Kay Cha.
Backport of 540ca563de from master.
This commit is contained in:
committed by
Claude Paroz
parent
edbf6de753
commit
b44a56c308
@@ -26,6 +26,9 @@ class TestNumberFormat(TestCase):
|
||||
self.assertEqual(nformat('1234', '.', grouping=2, thousand_sep=',',
|
||||
force_grouping=True), '12,34')
|
||||
self.assertEqual(nformat('-1234.33', '.', decimal_pos=1), '-1234.3')
|
||||
self.assertEqual(nformat('10000', '.', grouping=3,
|
||||
thousand_sep='comma', force_grouping=True),
|
||||
'10comma000')
|
||||
|
||||
def test_large_number(self):
|
||||
most_max = ('{}179769313486231570814527423731704356798070567525844996'
|
||||
|
||||
Reference in New Issue
Block a user