3 Dec 12:16
Re: QuickCheck properties for IntSet
Henning Thielemann <lemming <at> henning-thielemann.de>
2007-12-03 11:16:03 GMT
2007-12-03 11:16:03 GMT
On Sun, 2 Dec 2007, Don Stewart wrote: > dbenbenn: > > Here's a patch to IntSet.hs that adds many QuickCheck properties. It > > adds properties testing almost all of the public interface of IntSet, > > and also properties testing that the data type invariants are never > > broken. (The patch doesn't test the Data, Eq, Monoid, Read, or > > Typeable instances.) > > > > Also, this patch removes a helper function, foldlStrict, and replaces > > it with calls to Data.List.foldl'. > > > > I have two questions: > > > > 1) Is this the right way to submit patches? > > Thanks so much David, for taking the time to do this! Getting the > testing up to date on the somewhat-forgotten base code is really > important. Me too. Whenever I used IntSet, I discovered a bug ...
RSS Feed