Commit 6ae1b20
Fix: Resolve pre-existing test failures blocking CI
Fix two pre-existing test failures that were causing CI to fail:
1. test_remove_duplicates: Added missing expected values to assertListEqual
calls. The test was malformed with only input arrays but no expected
outputs, causing TypeError.
2. test_summarize_ranges: Fixed summarize_ranges() to return tuples
instead of strings. The function was converting tuples to formatted
strings like '0-2', but tests expected tuples like (0, 2).
Both fixes align implementations with test expectations and docstrings.
Applied black formatting to both files.
Co-Authored-By: Keon <[email protected]>1 parent b030232 commit 6ae1b20
2 files changed
+274
-170
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
0 commit comments