darcs

Issue 1119 quickCheck test don't work with quickcheck 2.1.0.1

Title quickCheck test don't work with quickcheck 2.1.0.1
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, galbolle, jaredj, kowey, thorkilnaur, tux_rocker
Assigned To
Topics Devel

Created on 2008-10-02.17:06:50 by galbolle, last changed 2009-08-27.14:23:47 by admin.

Files
File name Uploaded Type Edit Remove
quickcheck-tests--for-quickcheck-2_1.dpatch galbolle, 2008-10-06.15:03:55 text/x-darcs-patch
Messages
msg6204 (view) Author: galbolle Date: 2008-10-02.17:06:45
on my debian system, when running 'make test_unit', I get:

src/Darcs/Patch/QuickCheck.lhs:232:27: Not in scope: `quickCheck''
make: *** [src/Darcs/Patch/QuickCheck.o] Error 1

ghc-pkg shows I have quickCheck 2.1.0.1 installed:

/usr/lib/ghc-6.8.2/package.conf:
    Cabal-1.2.3.0, QuickCheck-1.1.0.0, QuickCheck-2.1.0.1, X11-1.4.2,
msg6207 (view) Author: droundy Date: 2008-10-02.19:44:55
Hmmmm.  Is 2.1.0.1 a stable release? How did they change their API?

David
msg6210 (view) Author: galbolle Date: 2008-10-02.19:54:24
I'm not sure it is stable, I took the latest version available on  
hackage. I also looked at quickcheck 2.1, which does not seem to have  
quickcheck' (by skimming the source code). I didn't find a trace of a  
version of QuickCheck with the quickcheck' function (or of a 2.0  
version). What version are you getting success with?

Le 2 oct. 08 à 21:44, David Roundy a écrit :

>
>
> David Roundy <droundy@darcs.net> added the comment:
>
> Hmmmm.  Is 2.1.0.1 a stable release? How did they change their API?
>
> David
>
> ----------
> nosy: +droundy
> status: unread -> chatting
> topic:  -ProbablyEasy, Regression
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue1119>
> __________________________________
>
msg6211 (view) Author: droundy Date: 2008-10-02.20:40:55
On Thu, Oct 02, 2008 at 07:54:27PM -0000, Florent Becker wrote:
> I'm not sure it is stable, I took the latest version available on  
> hackage. I also looked at quickcheck 2.1, which does not seem to have  
> quickcheck' (by skimming the source code). I didn't find a trace of a  
> version of QuickCheck with the quickcheck' function (or of a 2.0  
> version). What version are you getting success with?

2.0 works fine.  QuickCheck is a particularly nasty package in this
regard.  Its developers don't seem to think that a stable API is
important.  I'd rather use quickcheck 1 for this reason, except that
quickcheck 2 has some darn-useful features for simplifying
test-cases.  I'm sorry to hear that quickcheck 2.1 breaks
compatibility again.  :(

David
msg6244 (view) Author: galbolle Date: 2008-10-06.15:03:55
here is a patch which makes quickCheck.lhs work with quickCheck 2.1. It still 
needs to be made conditionnal on which version of quickCheck is installed, 
using autoconf.
Attachments
msg6442 (view) Author: galbolle Date: 2008-10-25.07:57:45
The patch I submitted does work, but the tests seem to take forever. It seems
quickCheck creates very big hunks, and the function delete_line does not like
this. However, quickCheck 2.0 seems to take forever on my machine too. Can
someone with a working quickCheck 2.0 try quickCheck 2.1, so that we can have a
point of comparison?
If there is no regression (or if we can fix it), it seems that quickcheck 2.1 is
the way to go, as it is the version which is on hackage, and the one that was
officially released.
msg8122 (view) Author: kowey Date: 2009-08-12.15:29:20
I believe there is nothing more we need to do with this bug now that we're using
QC 2.1 by default and also now that Reinier has done all this work improving the
test suite.  Please re-open if I'm mistaken.
History
Date User Action Args
2008-10-02 17:06:50galbollecreate
2008-10-02 19:44:57droundysettopic: - ProbablyEasy, Regression
nosy: + droundy
status: unread -> unknown
messages: + msg6207
2008-10-02 19:54:27galbollesetnosy: droundy, kowey, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, galbolle
messages: + msg6210
2008-10-02 20:40:57droundysetnosy: droundy, kowey, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, galbolle
messages: + msg6211
2008-10-06 15:04:02galbollesetfiles: + quickcheck-tests--for-quickcheck-2_1.dpatch
nosy: droundy, kowey, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, galbolle
messages: + msg6244
2008-10-06 15:04:30galbollesetfiles: + quickcheck-tests--for-quickcheck-2_1.dpatch
nosy: droundy, kowey, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, galbolle
2008-10-06 15:04:37galbollesetfiles: - quickcheck-tests--for-quickcheck-2_1.dpatch
nosy: droundy, kowey, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, galbolle
2008-10-25 07:57:47galbollesetnosy: droundy, kowey, dagit, simon, thorkilnaur, jaredj, dmitry.kurochkin, galbolle
messages: + msg6442
2009-08-06 18:01:07adminsetnosy: + markstos, jast, Serware, darcs-devel, zooko, mornfall, tommy, beschmi, - droundy, jaredj, galbolle
2009-08-06 21:13:12adminsetnosy: - beschmi
2009-08-10 21:49:29adminsetnosy: + galbolle, jaredj, - tommy, markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:47:16adminsetnosy: - dagit
2009-08-12 15:29:32koweysetstatus: unknown -> resolved
nosy: + tux_rocker
topic: + Devel
messages: + msg8122
2009-08-25 17:30:05adminsetnosy: + darcs-devel, - simon
2009-08-27 14:23:47adminsetnosy: kowey, darcs-devel, thorkilnaur, jaredj, tux_rocker, dmitry.kurochkin, galbolle