There must be module with test assertions in Phobos

max haughton maxhaton at gmail.com
Tue Apr 4 18:50:11 UTC 2023


On Tuesday, 4 April 2023 at 16:01:17 UTC, Adam D Ruppe wrote:
> On Tuesday, 4 April 2023 at 15:45:55 UTC, max haughton wrote:
>> They are redundant but they allow some slightly nicer failure 
>> messages upon failure (i.e. assert fail is not very helpful 
>> unless you are at one with all the code)
>
>
> I tend to use -checkaction=context together with -unitest...

That too. Not massively in love with it for (say) approximately 
equal testing floats but it's there.


More information about the Digitalmars-d mailing list