unittesting generic functions

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 14 19:33:51 PDT 2014


On 8/14/14, 6:20 PM, Idan Arye wrote:
> At any rate, random is bad for unit testing. Unit tests need to be
> deterministic, because when a unit test fails you want to debug it to
> see what's wrong.

Just publish the seed upon failure. It's a classic technique. -- Andrei



More information about the Digitalmars-d mailing list