Skip to content

Commit 5fc4641

Browse files
author
Christian Bender
committed
fixed test runner
1 parent dbc84d8 commit 5fc4641

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

allalgorithms/sorting/pigeonhole_sort.py renamed to allalgorithms/sorting/pidgeonhole_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Github: @martmists
88
#
99

10-
def pigeonhole_sort(data):
10+
def pidgeonhole_sort(data):
1111
minimum = min(data)
1212
size = max(data) - minimum + 1
1313
holes = [0] * size

tests/test_sorting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
insertion_sort,
66
merge_sort,
77
selection_sort,
8-
pigeonhole_sort,
8+
pidgeonhole_sort,
99
stooge_sort,
1010
cocktail_shaker_sort,
1111
tree_sort
@@ -26,7 +26,7 @@ def test_selection_sort(self):
2626
self.assertEqual([-44, 1, 2, 3, 7, 19], selection_sort([7, 3, 2, 19, -44, 1]))
2727

2828
def test_pigeonhole_sort(self):
29-
self.assertEqual([-44, 1, 2, 3, 7, 19], pigeonhole_sort([7, 3, 2, 19, -44, 1]))
29+
self.assertEqual([-44, 1, 2, 3, 7, 19], pidgeonhole_sort([7, 3, 2, 19, -44, 1]))
3030

3131
def test_stooge_sort(self):
3232
self.assertEqual([-44, 1, 2, 3, 7, 19], stooge_sort([7, 3, 2, 19, -44, 1]))

0 commit comments

Comments
 (0)