Commit Graph

1 Commits

Author SHA1 Message Date
f901a3f04c test(validation): make finding coverage a tested law
Add the meta-test the validation idiom mandates: every rule in the default
validator ships a failing fixture and a near-miss (just-valid) fixture, kept
in a registry keyed by rule description. One meta-test asserts the registry
covers exactly the default rule set, naming any default rule without
fixtures or any orphaned fixture; another exercises each rule in isolation,
failing its failing fixture and passing its near miss so nothing proves a
rule quiet on valid input by accident.

A planted orphan fixture was confirmed to fail the set-equality meta-test
before being removed. Adding a default rule without its fixtures now fails a
test before the change is deliberate.
2026-06-28 10:17:48 +02:00