[Haskell-cafe] Hunit Testing

mukesh tiwari mukeshtiwari.iiitm at gmail.com
Wed Oct 12 01:09:06 CEST 2011


Thank you

On Oct 12, 3:35 am, Ivan Lazar Miljenovic <ivan.miljeno... at gmail.com>
wrote:
> On 12 October 2011 09:25, mukesh tiwari <mukeshtiwari.ii... at gmail.com> wrote:
>
> > 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 ]
>
> This should be: ghci>let tests = TestList [ TestLabel "test 1" test1 ]
> Notice the missing "TestList" constructor!
>
> --
> Ivan Lazar Miljenovic
> Ivan.Miljeno... at gmail.com
> IvanMiljenovic.wordpress.com
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-C... at haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list