test: cover data-class non-detections
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: slegarraga
Closes [#405]
PASS.PASS, using the same digits as the valid dashed test value to prove detection depends on shape..venv/bin/pytest tests/unit/test_rule_data_classes.py -q — 16 passed..venv/bin/ruff check tests/unit/test_rule_data_classes.py — passed..venv/bin/ruff format --check tests/unit/test_rule_data_classes.py — passed.git diff --check — clean.
Ticket changed by: fu351
Ticket changed by: fu351
Ticket changed by: fu351
Originally posted by: fu351
Merged, thanks @slegarraga! Reusing the nine digits of SSN_VALID for the undashed case is the part I like most, it pins the rule to the dashed shape rather than to the value, so a pattern change that starts matching bare digit runs goes red immediately.