3 ms·
> A unit test would have caught this, but didn't. Unit tests for things with probability are hard. I've written one recently, and among other reasons, it convi
by toast0 4y ago
> A unit test would have caught this, but didn't.
Unit tests for things with probability are hard. I've written one recently, and among other reasons, it convinced me to write the selection differently so it was both more 'fair' and more easily tested.