Skip to content

Commit

Permalink
Merge pull request #51 from MIT-Emerging-Talent/challenge/sort_number…
Browse files Browse the repository at this point in the history
…s_in_ascending_order

earsed mention of  strategy from docstring
  • Loading branch information
tosan-okome authored Jan 10, 2025
2 parents becec91 + d828507 commit f5ce6b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions solutions/sort_ascending.py
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion solutions/tests/test_sort_ascending.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit f5ce6b4

Please sign in to comment.