[Haskell-cafe] Zero-arity tests in QuickCheck and displaying expected result

Ketil Malde ketil at ii.uib.no
Tue Apr 17 04:31:15 EDT 2007


On Mon, 2007-04-16 at 22:17 +0100, Joel Reymont wrote:

> On Apr 16, 2007, at 10:11 PM, Lennart Augustsson wrote:

>> Why can't you just do 'f 1 2 3 == (4, 5, 6, 7)' to test f?

> That's what HUnit does but it's enticing to be able to standardize on  
> QuickCheck for all of your testing.

Prelude Test.QuickCheck> let prop0 = List.sort [3,2,1] == [1,2,3] in quickCheck prop0
OK, passed 100 tests.

-k



More information about the Haskell-Cafe mailing list