File size: 575 Bytes
cfa6718
31d5b17
 
 
cfa6718
 
 
 
 
 
31d5b17
cfa6718
1
2
3
4
5
6
7
8
9
10
11
12
13
from candidate_scanner import CONTEXTUAL_VALUE_RE
from test_cases.legal_regression_cases import CASE_NUMBER_EXAMPLES


def test_known_case_number_shapes_match_contextual_reference_value_regex():
    """Case-number values include formal shapes and context-bound admin codes.

    GEM-HLM-2026-2210 is a zaaknummer because the surrounding label says so,
    even though the raw value has a generic administrative-code shape.
    """
    for value in CASE_NUMBER_EXAMPLES:
        assert CONTEXTUAL_VALUE_RE.fullmatch(value), f"Case/reference value shape should match: {value}"