Your goal: find the cause of a logic bug with evidence, fix it where it lives, and leave a test that would have caught it.
How this works (about 30 minutes)
- Theo gives you two support tickets and a small fee engine in the shared editor.
- Nothing is in the tickets beyond the symptoms. Ask Theo for facts and examples; he gives one line at a time and puts examples on the notepad.
- Pin the smallest case that breaks, find the cause, fix it, then write
test_regression in the file. Run the public tests from the editor.
- A production question about your fix.
- No hints on purpose, a few if you are stuck. Your report comes after.
What scores well
- A reproduction that pins the exact boundary before any fix
- Reading the spec sentence the code contradicts
- Fixing the cause, not the fee on its way out
- A regression test that fails without your fix, and an invariant you would check
- Saying what to do about the money already charged
Tips
- Take Practical Coach · Hunt the Logic Bug first.
- Say the hypothesis you are testing and what would rule it out.