14 Sep
2013
14 Sep
'13
4:04 p.m.
Le 13/09/13 17:38, Jared Grubb a écrit :
On Sep 10, 2013, at 21:12, Gennadiy Rozental
wrote: 3. Boost.Test already have this macro. It is called BOOST_CHECK_PREDICATE
BOOST_CHECK_PREDICATE( P, (a)(b)(c) );
Very nice symmetry and most of your your other points covered (stackability etc) I hadnt seen that one; I tried it, but it does require extra parens that I find distracting:
BOOST_CHECK_PREDICATE(vec, (Contains(42)));
I suspect that you need to use something like BOOST_CHECK_PREDICATE(Contains, (vec)(42) ); Best, Vicente