Skip to content

Commit

Permalink
Some smaller fixups/changes to align and fill in issue numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
seberg committed Aug 20, 2024
1 parent 07e3362 commit 13bef06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/listwiz/replace.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

def replaced_element(l, element, replacement):
def replaced_elements(l, mapping):
# See issue #12
raise NotImplementedError


Expand Down
8 changes: 5 additions & 3 deletions tests/test_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
from listwiz import replace as lwr


def test_replace_element():
# Stub to be replaced with actual tests when implementing the function
def test_replace_elements():
# Stub to be replaced with actual tests when implementing the function,
# see issue #12.
pass


def test_replace_sublist_simple():
# Replace sublist does not have any test right now.
# Replace sublist does not have any test right now. See issue #13.
pass


def test_replace_sublist_overlap():
# The sublist may match with overlap (e.g. if it is just [1, 1])
# We should add one or more test that check we replace the first occurance.
# See issue #13.
pass


Expand Down
6 changes: 3 additions & 3 deletions tests/test_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def test_mergesort():


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


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


def test_selection_sort():
# Stub for basic selection sort tets
# Stub for basic selection sort tests, see issue #10
pass

0 comments on commit 13bef06

Please sign in to comment.