Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Oct 24, 2024
1 parent 8c117db commit dc961ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kyu_6/who_likes_it/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ likes ["Alex", "Jacob", "Mark", "Max"] // must be "Alex, Jacob and 2 others like

For 4 or more names, the number in and 2 others simply increases.

[Source](https://www.codewars.com/kata/5266876b8f4bf2da9b000362/train/python)
[Source](https://www.codewars.com/kata/5266876b8f4bf2da9b000362)
2 changes: 1 addition & 1 deletion kyu_6/who_likes_it/test_likes_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'ALGORITHMS',
'STRINGS')
@allure.link(
url='https://www.codewars.com/kata/5266876b8f4bf2da9b000362/train/python',
url='https://www.codewars.com/kata/5266876b8f4bf2da9b000362',
name='Source/Kata')
# pylint: enable=R0801
class LikesTestCase(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion kyu_6/your_order_please/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ in the input String will only contain valid consecutive numbers.
"" --> ""
```

[Source](https://www.codewars.com/kata/55c45be3b2079eccff00010f/train/python)
[Source](https://www.codewars.com/kata/55c45be3b2079eccff00010f)
7 changes: 3 additions & 4 deletions kyu_6/your_order_please/test_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@allure.tag('FUNDAMENTALS',
'STRINGS')
@allure.link(
url='https://www.codewars.com/kata/55c45be3b2079eccff00010f/train/python',
url='https://www.codewars.com/kata/55c45be3b2079eccff00010f',
name='Source/Kata')
class OrderTestCase(unittest.TestCase):
"""
Expand Down Expand Up @@ -62,13 +62,12 @@ def test_order(self):
'The words in the input String will only contain valid consecutive '
'numbers.</p>')
# pylint: enable-msg=R0801
test_data = (
test_data: tuple = (
("is2 Thi1s T4est 3a",
"Thi1s is2 3a T4est"),
("4of Fo1r pe6ople g3ood th5e the2",
"Fo1r the2 g3ood 4of th5e pe6ople"),
("", ""),
)
("", ""))

for (sentence, expected) in test_data:
actual_result: str = order(sentence)
Expand Down

0 comments on commit dc961ff

Please sign in to comment.