(self)
| 30 | assert output.getvalue() == "a\nb\nc\n...\nf\ng\nh\nsquare (diff)\ni\nj\n" |
| 31 | |
| 32 | def test_diff_ranges(self) -> None: |
| 33 | a = ["hello", "world"] |
| 34 | b = ["hello", "world"] |
| 35 | |
| 36 | assert diff_ranges(a, b) == ( |
| 37 | [(0, 0), (0, 2), (2, 2), (2, 2)], |
| 38 | [(0, 0), (0, 2), (2, 2), (2, 2)], |
| 39 | ) |
| 40 | |
| 41 | a = ["hello", "world"] |
| 42 | b = ["goodbye", "world"] |
| 43 | |
| 44 | assert diff_ranges(a, b) == ( |
| 45 | [(0, 1), (1, 2), (2, 2), (2, 2)], |
| 46 | [(0, 1), (1, 2), (2, 2), (2, 2)], |
| 47 | ) |
nothing calls this directly
no test coverage detected