3 ms·
One of my favorite examples of property-based testing is in the docs for Haskell's Text.ParserCombinators.ReadP module. The semantics of the combinators are suc
by tmoertel 9y ago
One of my favorite examples of property-based testing is in the docs for Haskell's Text.ParserCombinators.ReadP module. The semantics of the combinators are succinctly (but fully) documented in the form of QuickCheck properties.
https://hackage.haskell.org/package/base-4.9.1.0/docs/Text-ParserCombinators-ReadP.html https://hackage.haskell.org/package/base-4.9.1.0/docs/Text-P...