Skip to content

Commit

Permalink
Remove String Spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 24, 2024
1 parent 175679b commit ec31847
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions kyu_8/remove_string_spaces/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Remove String Spaces."""
7 changes: 4 additions & 3 deletions kyu_8/remove_string_spaces/remove_string_spaces.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
"""
Solution for -> Remove String Spaces
Solution for -> Remove String Spaces.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""


def no_space(x: str) -> str:
"""
Remove the spaces from the string,
then return the resultant string.
Remove the spaces from the string.
:param x: str
:return: str
"""
Expand Down
11 changes: 5 additions & 6 deletions kyu_8/remove_string_spaces/test_remove_string_spaces.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Test for -> Remove String Spaces
Test for -> Remove String Spaces.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
Expand Down Expand Up @@ -28,14 +29,12 @@
name='Source/Kata')
# pylint: enable-msg=R0801
class NoSpaceTestCase(unittest.TestCase):
"""
Testing no_space function
"""
"""Testing no_space function."""

def test_something(self):
"""
Test that no_space function removes the spaces
from the string, then return the resultant string.
Test that no_space function with various test dara.
:return:
"""
# pylint: disable-msg=R0801
Expand Down

0 comments on commit ec31847

Please sign in to comment.