4 ms·
You might be interested in `contracts' which are basically assertions on steroids. See https://en.wikipedia.org/wiki/Design_by_contract https://en.wikipedia.or
by eru 13y ago
You might be interested in `contracts' which are basically assertions on steroids. See https://en.wikipedia.org/wiki/Design_by_contract https://en.wikipedia.org/wiki/Design_by_contract (or http://blog.racket-lang.org/2012/11/contracts-for-object-oriented_4671.html http://blog.racket-lang.org/2012/11/contracts-for-object-ori...) for an introduction.
You might also want to explore QuickCheck, which helps to generate these scenarios.