Unit tests in D

Walter Bright newshound1 at digitalmars.com
Wed May 5 11:04:13 PDT 2010


bearophile wrote:
> I have to use a syntax like this often enough inside
> unittests:
> 
> static assert(!__traits(compiles, foo(10)));

But why? Just use:

    foo(10);


More information about the Digitalmars-d mailing list