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.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net