Program logic bugs vs input/environmental errors

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 14 22:57:23 PDT 2014


On 10/14/2014 8:36 PM, Dicebot wrote:
> On Wednesday, 15 October 2014 at 03:18:31 UTC, Walter Bright wrote:
>> However, the compiler is still going to regard the assert() as nothrow, so the
>> unwinding from an Exception won't happen until up stack a throwing function is
>> encountered.
>
> This makes impossible to have non-fatal unittests and the very reason I was
> looking for a replacement.

I don't really understand the issue. Unittests are usually run with a separate 
build of the app, not in the main app. When they are run in the main app, they 
are run before the app even gets to main().

Why do you need non-fatal unittests?


More information about the Digitalmars-d mailing list