Making AssertError a singleton

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 13 04:18:46 PST 2016


On Tuesday, 13 December 2016 at 07:49:59 UTC, Jacob Carlborg 
wrote:
> On 2016-12-13 05:07, Jonathan M Davis wrote:
>
>> It also could be problematic with unit tests - especially unit
>> tests that catch AssertErrors (e.g. if someone wants to test 
>> the
>> contracts).
>
> I also expect all unit test frameworks that are slightly more 
> advanced then the built-in we have now would like to catch 
> AssertErrors.

Well, they _have_ to unless they want to completely ignore 
existing unittest blocks. But I don't see how making them a 
singleton would stop that.

Atila


More information about the Digitalmars-d mailing list