News for hackers. Stuff that matters.
Re:Property-based testing in practice [pdf] by eru on Tuesday April 02, 2024 @11:19PM (#39913288)
Testing behaviour against an 'oracle' is a great class of properties to check.

Especially useful when you want to test an optimized version against a simpler (but slower) baseline version. Or when you have a class of special cases, that you can solve in a simpler way.

Testing the system against itself, but under symmetry, is also useful. But that goes close to general properties. A symmetry could be flipping labels around, or shuffling input order etc; it depends on your system.

There are no comments on this comment yet.