[armedbear-devel] debug assert considered bad for health
Ville Voutilainen
ville.voutilainen at gmail.com
Thu May 6 16:39:27 UTC 2010
On 6 May 2010 19:32, Alan Ruttenberg <alanruttenberg at gmail.com> wrote:
>> That doesn't, unfortunately, solve the concern Mark states above. What we'd like
>> to have is capability to say
>> Assert((5 + 6 + 7) == 18);
> well, having a look at the code, that wouldn't be that useful. In many
> case some Boolean is computed and the assertion tests that Boolean.
With the above example, you could show _how_ the boolean is computed.
That assert would print stuff like
"Assertion failed at foobar.java:123: ((5 + 6 + 8) == 18)"
or
"Assertion failed at foobar.java:666: (verifyBlackMagic(1, 2, 3, 4))"
More information about the armedbear-devel
mailing list