Skip to content

Commit 2ac9172

Browse files
authored
Update test_sorting.py
Added test for quicksort.
1 parent 334a054 commit 2ac9172

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_sorting.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
stooge_sort,
1010
cocktail_shaker_sort,
1111
tree_sort
12+
quicksort
1213
)
1314

1415

@@ -36,6 +37,9 @@ def test_cocktail_shaker_sort(self):
3637

3738
def tree_sort(self):
3839
self.assertEqual([-44, 1, 2, 3, 7, 19], tree_sort([7, 3, 2, 19, -44, 1]))
40+
41+
def quicksort(self):
42+
self.assertEqual([[-44, 1, 2, 3, 7, 19], quicksort([7, 3, 2, 19, -44, 1]))
3943

4044

4145
if __name__ == "__main__":

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy