There was an error while loading. Please reload this page.
1 parent 7e04048 commit a9bc668Copy full SHA for a9bc668
1 file changed
tests/test_sorts.py
@@ -89,16 +89,16 @@ def test_sort_matches_builtin(sort, case):
89
assert list(sort(list(case))) == sorted(case)
90
91
92
-def test_binary_insertion_sort_rejects_non_comparable_items():
93
- with pytest.raises(TypeError):
94
- binary_insertion_sort([1, "a"])
95
-
96
97
@pytest.mark.parametrize(
98
"sort",
99
- [bubble_sort_iterative, bubble_sort_recursive],
+ [
+ binary_insertion_sort,
+ bubble_sort_iterative,
+ bubble_sort_recursive,
+ insertion_sort
+ ],
100
ids=lambda f: f.__name__,
101
)
102
-def test_bubble_sort_rejects_non_comparable_items(sort):
+def test_sort_rejects_non_comparable_items(sort):
103
with pytest.raises(TypeError):
104
sort([1, "a"])
0 commit comments