Catching Errors

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 20 03:39:48 PST 2017


On 01/20/2017 07:47 AM, Jacob Carlborg wrote:
> On 2017-01-19 16:46, Jack Stouffer wrote:
> 
>> Or, you can mark that unit test block as @system and have @safe tests in
>> another block.
> 
> No, this is for when the framework is catching the exception. It needs
> to wrap _all_ unit test blocks in a try-catch. If an assert fails I want
> the rest of the unit tests to be able to run.

And if one is to take language spec by heart, currently ANY framework
that implements it relies on undefined behavior :(

Usage of `assert` in unittests was quite a mistake.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20170120/8c58406f/attachment.sig>


More information about the Digitalmars-d mailing list