by platz · 9y ago · 0 comments
I didn't know fuzzers did that, so I'd guess that others would miss the nuance there too; and it's a rather large part of property based testing
This is a definition that aims to be more "categorically correct" without providing a lot of intuitive explanatory power. (E.g. A monad is a monoid in the category of endofunctors). Maybe that's ok in that was the aim and PBT can't be reduced to a single sentence like a lot of abstract concepts
It also assumes a well-defined definition of a fuzzer
I was also surprised to not see the word 'invariants' mentioned once. Maybe that's very close to "property", but property has other connotations so it still seems useful
That means you have to define the law in terms of the input and output. Rather than fix the input like you'd do on a regular test and just assert the output.
The hard part is trying to figure out what laws you should expect from your functions.
Just asking yourself what laws a function should adhere to as you are considering writing it function puts you in a different frame of mind and you can end up with simpler software.
This assumption is what are "blind implementation voting systems" were based on, and it was proved to not survive that well in practice. It may totally work in your case, but you may be interested in looking at the work on Nancy Leveson at the MIT (all links are from her website)
http://sunnyday.mit.edu/papers/nver-tse.pdf
http://sunnyday.mit.edu/critics.pdf
http://sunnyday.mit.edu/papers/nver2.pdf
http://sunnyday.mit.edu/papers/consistent-comp.pdf
This body of work launched quite a controversy, but well, it is still here...
Special casing is effectively traditional testing: input is 1, output is 2.