[Haskell-cafe] Hunit Testing

mukesh tiwari mukeshtiwari.iiitm at gmail.com
Wed Oct 12 00:25:43 CEST 2011


Hello everyone
I was going through this tutorial
http://hunit.sourceforge.net/HUnit-1.0/Guide.html and just wrote some simple
code but i am getting error

ghci>let  test1 = TestCase (assertEqual " equal " 3 ( id 3 )) ghci>let
tests = [ TestLabel "test 1" test1 ]ghci>runTestTT tests
<interactive>:0:11:
    Couldn't match expected type `Test' with actual type `[Test]'
    In the first argument of `runTestTT', namely `tests'
    In the expression: runTestTT tests
    In an equation for `it': it = runTestTT tests


Could some one please tell me what is wrong with this code.


Regards

Mukesh Tiwari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111012/f3a4a936/attachment.htm>


More information about the Haskell-Cafe mailing list