On Mon, Aug 8, 2011 at 10:21 PM, Andrew Pennebaker < [email protected]> wrote:
> Bernat, I'm very new to Smalltalk, please forgive my code. > > Please, don't ask for forgive. We are all here to learn :) > The latest version is more idiomatic. > https://github.com/mcandre/quicksmash > > I see no reason for QuickSmash to use instance variables. The only > necessary variable is "random", which is best initialized once. If you were > to create a thousand QuickSmash instances all of a sudden, many would have > the same random seed, so they would produce redundant test cases. > > I would like to remove the "version" class variable. Does anyone know how > to specify a version number in package.xml? > > Cheers, > > Andrew Pennebaker > www.yellosoft.us > > On Mon, Aug 8, 2011 at 7:10 AM, Stéphane Ducasse < > [email protected]> wrote: > >> indeed it looks quite redemetary and gen* sucks >> as if generate would cost more to write >> >> >> Stef >> >> On Aug 8, 2011, at 10:51 AM, Bernat Romagosa wrote: >> >> > Done :) >> > >> > 2011/8/8 Bernat Romagosa <[email protected]> >> > So I see it does not work, I'm fixing it and sending it back in a >> while... >> > >> > >> > 2011/8/8 Bernat Romagosa <[email protected]> >> > I've just ported it, please check whether it works for you. >> > >> > I don't quite like the code, but that's another issue... for instance, >> there are direct references to the class QuickSmash everywhere, instead of >> to self. Also, local variables are overused all the time when a single >> return statement would suffice. >> > >> > Anyway, if it works I'm in for rewriting these pieces of not so cool >> code :) >> > >> > Cheers, >> > >> > >> > 2011/8/8 Stéphane Ducasse <[email protected]> >> > ok so it should not be difficult to reproduce in Smalltalk. >> > >> > On Aug 8, 2011, at 9:27 AM, Miguel Moquillon wrote: >> > >> > > I've used Quickcheck with programs in Haskell. >> > > IMHA it is the great tool to test codes as we describe the properties >> of the code to test in terms of invariants or conditional properties. >> > > The tool then generates randomly 100 inputs to check the properties; >> we can indicates the tool to generate more inputs. (We can also specify the >> generator to use.) >> > > >> > > Mig >> > > >> > > Le 07/08/2011 22:43, Stéphane Ducasse a écrit : >> > >> Andrew >> > >> >> > >> First welcome :) >> > >> Second you should pay attention to the license of the code because >> GPL is not compatible with Smalltalk in general. >> > >> Third why quickMash is interesting because I could not get it. >> > >> >> > >> Stef >> > >> >> > >> On Aug 7, 2011, at 10:20 PM, Andrew Pennebaker wrote: >> > >> >> > >>> Can someone help me make QuickSmash Pharo-friendly? It's a unit test >> framework based on QuickCheck. >> > >>> >> > >>> QuickSmash >> > >>> https://github.com/mcandre/quicksmash >> > >>> >> > >>> Cheers, >> > >>> >> > >>> Andrew Pennebaker >> > >>> www.yellosoft.us >> > >> >> > >> >> > > >> > > >> > >> > >> > >> > >> > >> > -- >> > Bernat Romagosa. >> > >> > >> > >> > -- >> > Bernat Romagosa. >> > >> > >> > >> > -- >> > Bernat Romagosa. >> > <QuickSmash.st> >> >> >> > -- Mariano http://marianopeck.wordpress.com
