Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file addedtests/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions tests/test_sorts.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
from sorts.heap_sort import heap_sort


def test_heap_sort():
assert heap_sort([]) == []
assert heap_sort([1]) == [1]
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]