Proving It Works
Reviewing the AI's Diff tells you a change looks right. This page is about showing that it is right, which is a different claim and the one interviewers grade. Verification is one of the four parts of the score, and it's the part candidates most often skip under time pressure. "I think that works" earns little; "the new test failed before and passes now, the full suite is green, and I tried the empty case by hand" earns full marks.
The running example is a made-up job scheduler whose config accepts durations like "1h30m", and this ticket:
Durations with seconds, like "90s" or "2m15s", are rejected as invalid.
Run the Tests Before You Change Anything
Run the full test suite before your first edit and write down what you see. That baseline is the only way to know later whether a failure is yours. Interview repos often ship with a failing or flaky test on purpose, and a candidate who discovers it at minute 40 can't tell whether they caused it.
The baseline also tells you how to run things, which is worth learning while nothing is at stake. Find the command,
how long the suite takes and whether you can run a single file. If the full suite takes more than a minute, you'll want
the single-file command for the inner loop and the full run for checkpoints. Say the result out loud: "47 pass, one
fails in test_export.py, which is unrelated to the ticket; I'll leave it and mention it at the end."
From then on, follow one rule: run the relevant tests after every AI edit, and the full suite before you call any task done. At work you might let CI catch what you missed. In the interview there's no CI, and the interviewer is watching for the moment you run it.