News for hackers. Stuff that matters.
Re:The sad state of test frameworks by cormacrelf on Tuesday March 21, 2017 @08:05AM (#13921432)
You can also use the comma operator to document your assert()s, if you don't like using comments.

    assert(("test_foo() should be true", test_foo()));
https://en.wikipedia.org/wiki/Comma_operator#Asserts
Re:The sad state of test frameworks by gpderetta on Tuesday March 21, 2017 @08:10AM (#13921449)
I have used often and also seen in the wild the following form:

   assert(condition && "message");