Improving unit tests
Sean Kelly
sean at invisibleduck.org
Sun Nov 9 15:01:51 PST 2008
Andrei Alexandrescu wrote:
> 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).
Oops. that's what I get for typing that with only one hand and one eye
on the computer :-)
Sean
More information about the Digitalmars-d
mailing list