print page ranges: add test
print page ranges: add test: a task in smol-software-harbor (Harbor dataset). Add tests to tests/test pages.py for open ranges ( "8-" with 10 pages is 8, 9, 10 ), overlapping parts ( "1-4, 3-5" gives 1, 2, 3, 4, 5 ) and out-of-range pages ( "0" and "11" with 10 pages raise ValueError ). Do not…
The task
Add tests to `tests/test_pages.py` for open ranges (`"8-"` with 10 pages is `[8, 9, 10]`), overlapping parts (`"1-4, 3-5"` gives `[1, 2, 3, 4, 5]`) and out-of-range pages (`"0"` and `"11"` with 10 pages raise `ValueError`). Do not change `pages.py`; keep the existing tests. Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.