unit-threaded v0.6.19 - preliminary support for property-based testing

Andy Smith via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Jul 3 10:54:32 PDT 2016


On Saturday, 2 July 2016 at 18:21:10 UTC, Atila Neves wrote:
> http://code.dlang.org/packages/unit-threaded
>
> After merging code from Robert's fork I added some support for 
> property-based testing. There's no shrinking yet and 
> user-defined types aren't supported. Right now most if not all 
> primitive types are, as well as string, wstring, dstring and 
> arrays of any of them. Here's a simple example that is 
> hopefully self-explanatory:
>
> [...]

I make that round about 140 tests per line of code. Not too 
shabby!

Cheers,

A.




More information about the Digitalmars-d-announce mailing list