Skip to content

Commit

Permalink
added four spaces intstead of tabs to address ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MadiMalik committed Dec 27, 2024
1 parent 3cfe01f commit 25bda23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solutions/name_shuffler.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
"""

def name_shuffler(string: str):

assert isinstance(string, str) and string.strip(), "Input must be a non-empty string"

split_str = string.split(' ')

reverse_str = split_str[::-1]

return ' '.join(reverse_str)

name_shuffler('Mojtaba')
3 changes: 3 additions & 0 deletions solutions/tests/test_name_shuffler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ def test_long_name_input(self):

if __name__ == '__main__':
unittest.main()


# run test: python3 -m unittest solutions.tests.test_name_shuffler

0 comments on commit 25bda23

Please sign in to comment.