← Browse by Chapter
Get the Book →
#71Refactor commit
Here's my test file: [paste or reference path]. For each test assertion, `[VERIFY]`: (1) Does it test meaningful behaviour — would it fail if the implementation were wrong? (2) Is the expected value a literal or a function-call tautology? (3) Does it cover the edge case it claims to cover — is the input actually at the boundary? (4) Are there side effects the test should check but doesn't (database writes, API calls, file creation)? Output as a table: Test name | Meaningful? | Tautology risk | Side effects checked? | Verdict.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.