[Haskell-beginners] HUnit - testing for failed pattern match
xavier-list at rhnh.net
Tue Feb 22 11:59:12 CET 2011
Given the following contrived function:
| x == 3 = True
How do I test with HUnit that 2 is invalid input?
[ "Likes 3" ~: True ~=? giveMeThree 3
, "Dislikes 2" ~: ..... -- what?
I couldn't find anything mentioned in the HUnit user guide. References
to appropriate documentation appreciated.
More information about the Beginners