test_extracting_items_that_match_no_member_is_refused¶
Tests › tests/test_grader.py
What this test is for
Why it exists
**THE HARNESS ALREADY PUBLISHED THIS FAILURE AND NOTHING NOTICED.** A trailing `:796` kept an answer's `src/facade/external_bridge.cpp:796` from equalling the member's `src/facade/external_bridge.cpp`, so a cell that named 4 of 7 members correctly scored 0 of 8 set decisions, and the precision detail printed four MEMBER paths as "not in the set".
Given
mark = Mark( text="every file that creates a thread", type="set", weight=2, members=[{"value": "src/facade/external_bridge.cpp"}, {"value": "src/mcp/health.cpp"}], extract="List the files.", )monkeypatch.setattr( score, "ask", lambda *_a, **_k: judge.Reply(text="ITEMS:\nsrc\\facade\\other_thing.cpp\nEND"), )
When
out = score.score_set(mark, "an answer", "claude-sonnet-4-5-20250929", samples=1)all(d.hit is None for d in out)
Then
- ✓ all(d.hit is None for d in out) holds
- ✓ out[0].detail contains "key mismatch"
tests/test_grader.py:679 · its file's page
What it checks (2)
assert all(d.hit is None for d in out), ( f"a total member mismatch was scored instead of refused: {[(d.mark, d.hit) for d in out]}" )observesallassert "key mismatch" in out[0].detail, f"the refusal does not say why: {out[0].detail!r}"observesscore_setviaout
Where the product reaches it
dossier→_rank_enum_over_mirror→_class_side_is_only_enum_mirrors→all(flow)
Call flow
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-054 inferred