Skip to content

Commit

Permalink
Update test_numericals.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Oct 24, 2024
1 parent 00b3cea commit 8d121b0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions kyu_6/numericals_of_string/test_numericals.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,41 +47,31 @@ def test_numericals(self):
"<p></p>")
# pylint: enable-msg=R0801
with allure.step("Pass the string and verify the output"):
string = "Hello, World!"
expected = "1112111121311"

string: str = "Hello, World!"
expected: str = "1112111121311"
print_log(string=string, expected=expected)

self.assertEqual(numericals(string), expected)

with allure.step("Pass the string and verify the output"):
string = "Hello, World! It's me, JomoPipi!"
expected = "11121111213112111131224132411122"

print_log(string=string, expected=expected)

self.assertEqual(numericals(string), expected)

with allure.step("Pass the string and verify the output"):
string = "hello hello"
expected = "11121122342"

print_log(string=string, expected=expected)

self.assertEqual(numericals(string), expected)

with allure.step("Pass the string and verify the output"):
string = "Hello"
expected = "11121"

print_log(string=string, expected=expected)

self.assertEqual(numericals(string), expected)

with allure.step("Pass the string and verify the output"):
string = "aaaaaaaaaaaa"
expected = "123456789101112"

print_log(string=string, expected=expected)

self.assertEqual(numericals(string), expected)

0 comments on commit 8d121b0

Please sign in to comment.