[Haskell-beginners] QuickCheck for testing a parsing function

Henk-Jan van Tuyl hjgtuyl at chello.nl
Thu Feb 20 13:39:33 UTC 2014


On Sun, 16 Feb 2014 10:45:21 +0100, Thomas Bach
<thbach at students.uni-mainz.de> wrote:

> Hi there,
>
> I have the following snippet:
:
> Any hints? Or is this simply not a nail for the QuickCheck-hammer?

I am not a QuickCheck expert, but I think you need to generate the parts  
that you expect as output, than compose these parts into the string to be  
parsed. That way, you can check the result.

Regards,
Henk-Jan van Tuyl


-- 
Folding at home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


More information about the Beginners mailing list