From d828507c02ae274d72cb34eb1d721f2df98d5e4e Mon Sep 17 00:00:00 2001 From: Safiya Hashimi Date: Fri, 10 Jan 2025 00:18:46 +0100 Subject: [PATCH] earsed mention of strategy from docstring --- solutions/sort_ascending.py | 4 ++-- solutions/tests/test_sort_ascending.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/solutions/sort_ascending.py b/solutions/sort_ascending.py index ff845369c..982bc80e1 100644 --- a/solutions/sort_ascending.py +++ b/solutions/sort_ascending.py @@ -1,5 +1,5 @@ """ - A module for sorting numbers in a list in ascending order using Bubble Sort algorithm. + A module for sorting numbers in a list of ascending order. Module contents: - sort_ascending: A function to sort a list of integers in ascending order. @@ -12,7 +12,7 @@ def sort_ascending(numbers: list[int]) -> list[int]: """ - The function takes a list of int & sorts it in ascending order using the bubble Sort strategy. + The function takes a list of int and return a new sorted list of int in ascending order. Parameters: Numbers (list[int]): this is the list of numbers we want to sort diff --git a/solutions/tests/test_sort_ascending.py b/solutions/tests/test_sort_ascending.py index 9eff72809..d5f5d350b 100644 --- a/solutions/tests/test_sort_ascending.py +++ b/solutions/tests/test_sort_ascending.py @@ -18,7 +18,7 @@ class TestSortAscending(unittest.TestCase): - """These unittest cases will test the sort_ascending function using bubble sort algorithm.""" + """These unittest cases will test the sort_ascending function.""" def test_empty_list(self): """it should return an empty list"""