Tests before trust

Core logic ships with automated tests and a self-check you can run.

Why

Code that touches money is only trustworthy once it has been checked against cases with a known correct answer, not just read over. A test that runs the calculation against those known cases catches a mistake before it reaches a report. A self-check the reader can run themselves, alongside the result, does the same thing from the outside: it lets anyone confirm the output matches what the same inputs should produce, without having to trust the code that produced it.

This rule governs how every calculator and kit on this site is built, rather than being the subject of one article on its own.