Skip to content

Commit

Permalink
Update test_vaporcode.py
Browse files Browse the repository at this point in the history
kyu_7/vaporcode/test_vaporcode.py:57: error: Name "string" already defined on line 49  [no-redef]
kyu_7/vaporcode/test_vaporcode.py:58: error: Name "expected" already defined on line 50  [no-redef]
kyu_7/vaporcode/test_vaporcode.py:64: error: Name "string" already defined on line 49  [no-redef]
kyu_7/vaporcode/test_vaporcode.py:65: error: Name "expected" already defined on line 50  [no-redef]
kyu_7/vaporcode/test_vaporcode.py:73: error: Name "string" already defined on line 49  [no-redef]
kyu_7/vaporcode/test_vaporcode.py:74: error: Name "expected" already defined on line 50  [no-redef]
  • Loading branch information
ikostan committed Oct 24, 2024
1 parent e571a55 commit 8326a91
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions kyu_7/vaporcode/test_vaporcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ def test_vaporcode(self):

with allure.step("Enter string with special "
"chars and verify the output"):
string: str = "Why isn't my code working?"
expected: str = "W H Y I S N ' T M Y " \
"C O D E W O R K I N G ?"
string = "Why isn't my code working?"
expected = "W H Y I S N ' T M Y " \
"C O D E W O R K I N G ?"
print_log(s=string, expected=expected)
self.assertEqual(vaporcode(string), expected)

with allure.step("Enter crazy string and verify the output"):
string: str = " ; FUV! qd vz Xy-b pM.!:F lEqRLY,p RGS:;Rh Z "
expected: str = "; F U V ! Q D V Z X Y - B P " \
"M . ! : F L E Q R L Y , P R G " \
"S : ; R H Z"
string = " ; FUV! qd vz Xy-b pM.!:F lEqRLY,p RGS:;Rh Z "
expected = "; F U V ! Q D V Z X Y - B P " \
"M . ! : F L E Q R L Y , P R G " \
"S : ; R H Z"
print_log(s=string, expected=expected)
self.assertEqual(vaporcode(string), expected)

with allure.step("Enter string with chars"
"only and verify the output"):
string: str = "blah"
expected: str = "B L A H"
string = "blah"
expected = "B L A H"
print_log(s=string, expected=expected)
self.assertEqual(vaporcode(string), expected)

0 comments on commit 8326a91

Please sign in to comment.