version(assert) and Phobos release unittest build

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Thu Nov 28 08:30:11 PST 2013


On 28/11/13 17:20, Dicebot wrote:
> assert(false) is special and never removed, don't use it for testing assert code
> : http://dlang.org/expression.html#AssertExpression

Seems to make no difference if I replace it with

     int i = 1;
     assertThrown!AssertError(assert(i == 3));

... and tweak the assert accordingly (i.e. replace it with assert(i == 1) where 
previously I used assert(true)).


More information about the Digitalmars-d-learn mailing list