mirror of
https://github.com/mattpocock/skills.git
synced 2026-07-29 02:52:42 +07:00
Tests whose assertion is recomputed the way the code computes it pass by construction and give zero confidence. Add it as a peer of the existing implementation-coupling anti-pattern: a Philosophy principle, a per-cycle checklist gate, and a BAD/GOOD example pair in tests.md. Includes a patch changeset. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
486 B
486 B
mattpocock-skills
| mattpocock-skills |
|---|
| patch |
Add the tautological test anti-pattern to the tdd skill. Tests whose assertion is recomputed the way the code computes it pass by construction and give zero confidence — distinct from the implementation-coupling anti-pattern already covered. Added as a peer at the same three sites: a Philosophy principle (expected values must come from an independent source of truth), a per-cycle checklist gate, and a BAD/GOOD example pair in tests.md.