diff --git a/solutions/tests/test_longest_word.py b/solutions/tests/test_longest_word.py index fb341fdf7..d5e8b94ca 100644 --- a/solutions/tests/test_longest_word.py +++ b/solutions/tests/test_longest_word.py @@ -29,8 +29,8 @@ def test_sentence_with_punctuation(self): Test case for sentences containing punctuation. The function should return the longest word, ignoring punctuation. """ - result = longest_word("Hello, world!") - self.assertEqual(result, "world") + result = longest_word("Hello, worlds!") + self.assertEqual(result, "worlds") def test_non_string_input(self): """