Named unittests

w0rp via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 31 05:10:14 PDT 2015


On Tuesday, 31 March 2015 at 11:39:02 UTC, tcak wrote:
> On Monday, 30 March 2015 at 21:57:33 UTC, Andrei Alexandrescu 
> wrote:
>> On 3/30/15 2:55 PM, Panke wrote:
>>> I've implemented this in a library and I'm sure others have 
>>> as well. Are
>>> you sure, you want a language solution?
>>
>> With attributes? That might be palatable but only as a 
>> standard solution. I'd want to add that to Phobos. -- Andrei
>
> The "unittest" is a language thing. Why would name support be 
> put into library I don't get it.
>
> unittest{}  => Unnamed
>
> unittest!"Testing new classes" {}  => Named (Explained)

Becaused adding language features takes longer than using a 
library, and every single feature, no matter how seemingly 
simple, will increase the number of langauge bugs and lead to 
more odd things happening.


More information about the Digitalmars-d mailing list