I would like to get a flag result of test for to do something like this:
BOOST_CHECK_EQUAL(...);
if (flag == sucess){
then this
}
else
{
this
}
any idea how to do that?
Thanks.
I would like to get a flag result of test for to do something like this:
BOOST_CHECK_EQUAL(...);
if (flag == sucess){
then this
}
else
{
this
}
any idea how to do that?
Thanks.
From BOOST_CHECK_EQUAL
BOOST_CHECK_EQUAL( left, right )
The same as BOOST_CHECK( left == right ).
So, you can just use
BOOST_CHECK_EQUAL(a, b);
const bool flag = (a == b);
I think, there is no other way.