From e220ecd16d71d09745c3b6622c0560e4b5ac7a3f Mon Sep 17 00:00:00 2001 From: Dheeraj2808 Date: Wed, 4 Nov 2026 22:02:26 +0530 Subject: [PATCH] test: add negative numbers case for heap sort --- tests/test_sorts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_sorts.py b/tests/test_sorts.py index 5cfbacf30e6c..98525df81497 100644 --- a/tests/test_sorts.py +++ b/tests/test_sorts.py @@ -68,6 +68,7 @@ def test_heap_sort() -> None: assert heap_sort([5, 2, 5, 1]) == [1, 2, 5, 5] assert heap_sort([1, 2, 3, 4]) == [1, 2, 3, 4] assert heap_sort([5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5] + assert heap_sort([-2, -5, -45]) == [-45, -5, -2] @pytest.mark.parametrize(