Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Test] What's the best way to make custom assertions?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2012-10-23 16:44:26


Vicente J. Botet Escriba <vicente.botet <at> wanadoo.fr> writes:

> Would this works as well?
> void check_op1()
> {
> BOOST_REQUIRE( expr );
> }
> BOOST_AUTO_TEST_CASE( t1 )
> {
> BOOST_TEST_CONTEXT( "
> Testing invoked from: " << __FILE__ << "(" << __LINE__ << ")" );
> check_op1( );
> }

Yes. It will, but in my case this statement needs to be written once.

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