From 13bef062e5115b6f9d83b8dc26dd1a9478ce5796 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Tue, 20 Aug 2024 16:46:05 +0200 Subject: [PATCH] Some smaller fixups/changes to align and fill in issue numbers --- src/listwiz/replace.py | 3 ++- tests/test_replace.py | 8 +++++--- tests/test_sorting.py | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/listwiz/replace.py b/src/listwiz/replace.py index f55cf3f..4dcca1c 100644 --- a/src/listwiz/replace.py +++ b/src/listwiz/replace.py @@ -1,5 +1,6 @@ -def replaced_element(l, element, replacement): +def replaced_elements(l, mapping): + # See issue #12 raise NotImplementedError diff --git a/tests/test_replace.py b/tests/test_replace.py index 9a4d6f5..1b15f4b 100644 --- a/tests/test_replace.py +++ b/tests/test_replace.py @@ -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 diff --git a/tests/test_sorting.py b/tests/test_sorting.py index a94e83f..ceb6cce 100644 --- a/tests/test_sorting.py +++ b/tests/test_sorting.py @@ -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