Skip to content

Commit

Permalink
challenge: fixed failing test case due to input length constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
imwaymaran committed Jan 8, 2025
1 parent 3cb78a4 commit cba198d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solutions/tests/test_longest_substring.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def test_single_character(self):

def test_repeating_pattern(self):
"""Test with a long string that repeats a pattern, expecting output equal to pattern length."""
repeating_pattern = "abc" * 16667
repeating_pattern = (
"abc" * 16666
) # Adjusted to keep length within 50,000 characters
self.assertEqual(longest_substring(repeating_pattern), 3)

def test_maximum_input_length_all_repeating(self):
Expand Down

0 comments on commit cba198d

Please sign in to comment.