From cb173bb088e32df3d9ee8bee3c579d88ea713e8f Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 8 Feb 2024 10:58:54 +0100 Subject: [4.2.x] Fixed #35172 -- Fixed intcomma for string floats. Thanks Warwick Brown for the report. Regression in 55519d6cf8998fe4c8f5c8abffc2b10a7c3d14e9. Backport of 2f14c2cedc9c92373471c1f98a80c81ba299584a from main. --- tests/humanize_tests/tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/humanize_tests/tests.py b/tests/humanize_tests/tests.py index a78bbadafd..5e4f7f0ef7 100644 --- a/tests/humanize_tests/tests.py +++ b/tests/humanize_tests/tests.py @@ -129,12 +129,18 @@ class HumanizeTests(SimpleTestCase): -1234567.25, "100", "-100", + "100.1", + "-100.1", + "100.13", + "-100.13", "1000", "-1000", "10123", "-10123", "10311", "-10311", + "100000.13", + "-100000.13", "1000000", "-1000000", "1234567.1234567", @@ -163,12 +169,18 @@ class HumanizeTests(SimpleTestCase): "-1,234,567.25", "100", "-100", + "100.1", + "-100.1", + "100.13", + "-100.13", "1,000", "-1,000", "10,123", "-10,123", "10,311", "-10,311", + "100,000.13", + "-100,000.13", "1,000,000", "-1,000,000", "1,234,567.1234567", -- cgit v1.3