News for hackers. Stuff that matters.
Re:What if writing tests was a joyful experience? by postalrat on Saturday January 14, 2023 @11:13PM (#34386654)
I prefer "code it twice and hope you get it right once" testing.

Complex systems use that system everywhere. Why aren't we doing it for our code?

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.