Skip to content

Commit

Permalink
added test for sorting an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
gertingold committed Aug 27, 2024
1 parent b8ecb63 commit 54e832d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def test_mergesort():


def test_mergesort_empty():
# Stub for a test with empty lists, see issue #8
pass

# Test with empty list:
l = []
res = lws.merge_sort(l)
assert res == []

def test_bubble_sort():
# Stub for basic bubble sort tests, see issue #9
Expand Down

0 comments on commit 54e832d

Please sign in to comment.