by Jonathan Bright | Nov 8, 2026 | Tutorials
A reservation method returns true. Has your test proved that anything was reserved? Only if it also checks the outcome the caller relies on. A test can execute the right method and still miss a broken result. This tutorial builds five behavior tests for a small...
by Jonathan Bright | Nov 8, 2026 | Tutorials
A periodic loop can start a second job while the first is still unfinished, even when it awaits every timer tick. Await the job itself before requesting the next tick. This tutorial makes the overlap reproducible, then checks a sequential loop through normal work,...
by Jonathan Bright | Nov 6, 2026 | Tutorials
A counter can pass a test when two workers happen to run one after another and still lose an update when their reads overlap. Make that difference reproducible by putting a test barrier between the read and the write. Then replace the whole update with an atomic...