A Check That Can't Fail Is Worse Than None
A canary built to catch one bad state passed exactly that state, because grep -c prints 0 and also exits non-zero. The post ends with copyable self-tests that run a known-bad and a known-good input through a check in ...