October 20, 2026 · Nora Berg

A test that saved a weekend

Fifteen lines of test code that caught a bug before it shipped.

The bug turned out to be a single character in a configuration file, which is how most of my long evenings end.

If a script needs a manual, it probably needs to be simpler first.

I rewrote the function twice before realising the original version was fine and the problem was in the input.

The documentation was correct; I simply read the version for a release three years older than mine.

Small tools are pleasant because you can hold the entire program in your head at once.

In the end the fix was three lines, and the commit message was longer than the change.

← back to the journal