Improving unit tests

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Nov 9 09:49:30 PST 2008


Sean Kelly wrote:
> Don wrote:
>>
>> Couldn't there be some hidden global bool, isInUnitTest, which is set 
>> when the unit tests start to run, and which is set back to false when 
>> the last one ends. assert() could have different behaviour depending 
>> on whether it's in the unit testing phase, or not.
> 
> assert currently must throw when using DMD because it doesn't generate a 
> fukk stack frame for the call.

I see that annoys the heck out of you :o).

Andrei



More information about the Digitalmars-d mailing list