Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-01-29 13:52:53

> I prefer the symmetry of
> BOOST_CHECK_EQUAL(obj.fn(), true)
> BOOST_CHECK_EQUAL(obj.fn(), false)
> since, at different points I'm expecting true or false. I know there
> are alternatives.

Why not
BOOST_CHECK( obj.fn() );
BOOST_CHECK( !obj.fn() );

I believe it's more natural.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at