Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fc4641

Browse files
author
Christian Bender
committed
fixed test runner
1 parentdbc84d8 commit5fc4641

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-
defpigeonhole_sort(data):
10+
defpidgeonhole_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
deftest_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
deftest_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)

[8]ページ先頭

©2009-2025 Movatter.jp