News for hackers. Stuff that matters.
Re:What if writing tests was a joyful experience? by eru on Sunday January 15, 2023 @02:26AM (#34387449)
Comparing the output of your system against an oracle is one property you can test.

But you don't always have an oracle. So other properties still make sense.

As a simple example: if you code up a quantum mechanics simulator, that's hard, and I wouldn't be able to code up an oracle for you straight away. But I can tell you that you probably want to check that things like momentum and energy better be conserved.

There are no comments on this comment yet.