test_line_ranges_are_compact_and_ordered

Tests › tests/test_wiki_activity.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. —
→

Then

  1. ✓ _ranges({20, 12, 13, 14, 15}) equals "12-15,20"
  2. ✓ _ranges(set()) equals ""

tests/test_wiki_activity.py:93 · its file's page

What it checks (1)

  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→_ranges

What 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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-045catalogunknown