From d3a7ed5bcc45000a6c3dd55d85a4caaa83299f83 Mon Sep 17 00:00:00 2001 From: Simon Törnqvist Date: Thu, 16 May 2024 10:09:09 +0200 Subject: Fixed #35443 -- Changed ordinal to return negative numbers unchanged. Previously, `-1` was converted to `"-1th"`. This has been updated to return negative numbers "as is", so that for example `-1` is converted to `"-1"`. This is now explicit in the docs. Co-authored-by: Martin Jonson --- tests/humanize_tests/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/humanize_tests/tests.py b/tests/humanize_tests/tests.py index 5e4f7f0ef7..ab967e2874 100644 --- a/tests/humanize_tests/tests.py +++ b/tests/humanize_tests/tests.py @@ -55,6 +55,9 @@ class HumanizeTests(SimpleTestCase): "102", "103", "111", + "-0", + "-1", + "-105", "something else", None, ) @@ -70,6 +73,9 @@ class HumanizeTests(SimpleTestCase): "102nd", "103rd", "111th", + "0th", + "-1", + "-105", "something else", None, ) -- cgit v1.3