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

2007-04-16 Thread Donald Bruce Stewart
joelr1: 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

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

2007-04-16 Thread Joel Reymont
Are there any examples of such custom drivers? On Apr 16, 2007, at 10:09 PM, Donald Bruce Stewart wrote: That's just the default driver. Plenty of custom drivers exist which compare the output. The QC driver is just a function you implement, after all. -- http://wagerlabs.com/

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

2007-04-16 Thread Donald Bruce Stewart
I usually roll a new driver for each project, for example: http://www.cse.unsw.edu.au/~dons/code/fps/tests/QuickCheckUtils.hs and a smp parallel driver, http://www.cse.unsw.edu.au/~dons/code/pqc/Test/QuickCheck/Parallel.hs There's a few examples in Test.QuickCheck too. joelr1: Are