3 Jun
2006
3 Jun
'06
8:41 p.m.
Gennadiy Rozental wrote:
"Ed Johnson"
wrote in message news:e5qld2$nh0$1@sea.gmane.org... Hi,
Is there a way to get the funcationality of BOOST_CHECK_EQUAL when I want to test that two parameters are not equal to each other? I like the way BOOST_CHECK_EQUAL allow me to see the mismatched runtime values.
BOOST_CHECK_PREDICATE( std::not_equal_to<T>, (a)(b) );
Gennadiy
great, Thank you! and for completeness, there needs to be an additional () in order to compile: BOOST_CHECK_PREDICATE( std::not_equal_to<T>(), (a)(b) ); BOOST_CHECK_PREDICATE( std::not_equal_to<int>(), (3)(3) );