[Haskell-cafe] Zero-arity tests in QuickCheck and displaying
expected result
Lennart Augustsson
lennart at augustsson.net
Mon Apr 16 17:11:57 EDT 2007
Why can't you just do 'f 1 2 3 == (4, 5, 6, 7)' to test f?
On Apr 16, 2007, at 22:08 , Joel Reymont wrote:
>
> On Apr 16, 2007, at 9:29 PM, Donald Bruce Stewart wrote:
>
>> It's interesting to note that QuickCheck generalises unit testing:
>> zero-arity QC properties are exactly unit tests.
>
> I don't think this works very well. I rely quite heavily on being
> able to compare expected output with test results and QC does not
> seem to provide for this feature when tests are zero arity.
>
> Am I missing something?
>
> Thanks, Joel
>
> --
> http://wagerlabs.com/
>
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list