Damncheck - a property-based testing library

Idan Arye via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Sep 4 05:31:45 PDT 2014


On Thursday, 4 September 2014 at 05:39:04 UTC, George wrote:
> Hey everyone,
>
> As my first take on D after spending around 2 weeks learning it 
> I
> thought I should write something useful that sort of encompasses
> everything interesting about D (for me it was the flexibility of
> working with types and lazy arguments).
>
> After looking at dashcheck 
> (https://github.com/mcandre/dashcheck)
> I thought I'd improve it. While improving it I noticed that my
> program is much different and decided to release my code as
> another project; Damncheck (http://github.com/geezee/damncheck).
>
> I was hoping to get some feedback from the community regarding
> the quality of the code and if something can be written the
> "D-way". I have also written a blog post about the process
> (http://blog.zakhour.me/post/d/damncheck-on-building-a-property-based-testing-library-for-d/)
>
> Thank you for your time,
> George.

You should make your generators accept seeds. Seedless randoms 
are bad for unit testing, since you can't replicate failed tests.


More information about the Digitalmars-d-announce mailing list