[Haskell-cafe] Hunit Testing
mukeshtiwari.iiitm at gmail.com
Wed Oct 12 00:25:43 CEST 2011
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe