Better unittest failure output

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 7 05:34:25 PDT 2015


On Monday, 7 September 2015 at 12:16:14 UTC, anonymous wrote:
> On Monday 07 September 2015 14:12, Bahman Movaqar wrote:
>
>> Thanks.  This is indeed helpful.  OT but where can I view the 
>> documentation for `unittest` and `assert`?
>
> unittest: http://dlang.org/unittest.html
> assert: http://dlang.org/expression.html#AssertExpression (I 
> don't know why
> it's considered an expression and not a statement.)

int main()
{
	int a = 1;
	a || assert(false);
	return 0;
}


More information about the Digitalmars-d-learn mailing list