TDD
Whenever I ask AI to fix a bug first and add tests afterward, the new tests just mirror the buggy code and stay green—I want it to write a failing test first before touching the implementation.
> to >= until it turns green, and finally extract clean constants without changing behavior. It shines on bug fixes and clear business rules, but fits poorly while exploring visual layouts or unsettled product ideas.You can say this to an AI Agent
Ready to paste into Cursor, Claude Code, or CodexFix the “30 off 200+ fails at exactly 200” bug using TDD: first write a failing test and show me the red output, then make the minimal code change to turn it green, and finally refactor while keeping all related tests green.
