Closed olorin closed 9 years ago
Hspec can do property based testing (using quickcheck under the hood). For example, see https://github.com/erikd/haskell-big-integer-experiment/blob/master/Check/NewX.template.hs#L58
Thanks for the comments - didn't realise hspec did that. Will update in the morning.
@erikd updated. I'm pretty sure those test failures are transient as I didn't touch that part of the code, but I can't ask travis to rebuild as it's not my repo.
Applied. Thanks.
Plus quickcheck of the roundtrip property. Note the dropping of
requestHost
andrequestPort
and use of raw Path; it'd probably be nice to at some point expose the URI as separate components inRequest
which would then be eliminated inwaiRequest
; maybe along the lines ofnetwork-uri
? For now just the simplest implementation.