Skip to content

Commit

Permalink
Enhanced test for _commonprefix()
Browse files Browse the repository at this point in the history
  • Loading branch information
knikolaevskii committed Jun 19, 2024
1 parent bb1d1f2 commit f7743cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_commonprefix_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ def print_coverage():


# Tests
test_cases: List[Tuple[List[str], str]] = []
test_cases: List[Tuple[List[str], str]] = [
(["car", "car"], "Test 1: Same words"),
([], "Test 2: Empty list"),
(["car", "dog"], "Test 2: Different words")
]

for strings, description in test_cases:
print(f"\nTesting case: {description} - Input: {strings}")
Expand Down

0 comments on commit f7743cf

Please sign in to comment.