Python · Errors, debugging and testing

Tests that tell right from wrong

A test is worth writing only if some wrong version of the function would fail it, so choose inputs where wrong versions slip.