From fe76944269c13d59f8bb3bc1cfff7ab6443777e4 Mon Sep 17 00:00:00 2001 From: Ad Timmering Date: Fri, 26 Nov 2021 20:40:25 +0900 Subject: [PATCH] Refs #28628 -- Added tests for intcomma with non-ASCII digits. --- tests/humanize_tests/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/humanize_tests/tests.py b/tests/humanize_tests/tests.py index d710a99263..298ca3f789 100644 --- a/tests/humanize_tests/tests.py +++ b/tests/humanize_tests/tests.py @@ -69,11 +69,13 @@ class HumanizeTests(SimpleTestCase): 100, 1000, 10123, 10311, 1000000, 1234567.25, '100', '1000', '10123', '10311', '1000000', '1234567.1234567', Decimal('1234567.1234567'), None, + '1234567', '1234567.12', ) result_list = ( '100', '1,000', '10,123', '10,311', '1,000,000', '1,234,567.25', '100', '1,000', '10,123', '10,311', '1,000,000', '1,234,567.1234567', '1,234,567.1234567', None, + '1,234,567', '1,234,567.12', ) with translation.override('en'): self.humanize_tester(test_list, result_list, 'intcomma') @@ -83,11 +85,13 @@ class HumanizeTests(SimpleTestCase): 100, 1000, 10123, 10311, 1000000, 1234567.25, '100', '1000', '10123', '10311', '1000000', '1234567.1234567', Decimal('1234567.1234567'), None, + '1234567', '1234567.12', ) result_list = ( '100', '1,000', '10,123', '10,311', '1,000,000', '1,234,567.25', '100', '1,000', '10,123', '10,311', '1,000,000', '1,234,567.1234567', '1,234,567.1234567', None, + '1,234,567', '1,234,567.12', ) with self.settings(USE_THOUSAND_SEPARATOR=False): with translation.override('en'):