diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-02-08 10:58:54 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-02-08 10:59:43 +0100 |
| commit | c22075af803e031e2977ed93391c2e3c6a714df4 (patch) | |
| tree | 29049665388918ec6b092e3eb88c39ae333e6e0d /tests | |
| parent | 540b28ff9f7fc9a26181146b139af58f87bc9f53 (diff) | |
[5.0.x] Fixed #35172 -- Fixed intcomma for string floats.
Thanks Warwick Brown for the report.
Regression in 55519d6cf8998fe4c8f5c8abffc2b10a7c3d14e9.
Backport of 2f14c2cedc9c92373471c1f98a80c81ba299584a from main
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/humanize_tests/tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
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", |
