[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: use assert in the test suite

From: Akim Demaille
Subject: Re: RFC: use assert in the test suite
Date: Tue, 26 Jun 2012 16:35:38 +0200

Le 26 juin 2012 à 16:26, Paul Eggert a écrit :

> On 06/26/2012 02:03 AM, Akim Demaille wrote:
>> I find avoiding assert useless and actually painful.
> For tests it doesn't matter and I have no objection.

OK, thanks.

> For production code, 'assert' typically bloats the code
> compared to 'abort'.  It's easy enough, if you prefer
> the the 'assert' style, to define an 'assert'-like function
> of your own,  That is cleaner than a macro anyway, since
> it doesn't have the problem of changed behavior
> when you compile with -DNDEBUG.

Which is already what you did with aver :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]