test_line_ranges_are_compact_and_ordered¶
Tests › tests/test_wiki_activity.py
What this test is for
Why it exists
`{20, 12, 13, 14, 15}` → `12-15,20`: what a box's link carries.
Verifies REQ-DDB-WIKI-045
Given
- —
When
- —
Then
- ✓ _ranges({20, 12, 13, 14, 15}) equals "12-15,20"
- ✓ _ranges(set()) equals ""
tests/test_wiki_activity.py:93 · its file's page
What it checks (1)
assert _ranges({20, 12, 13, 14, 15}) == "12-15,20" and _ranges(set()) == ""observes_ranges
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_line_ranges_are_compact_and_ordered→_rangesWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-045 | catalog | unknown |