Use this example for now. I will fix docs:
#include
#include
using boost::unit_test::test_suite;
#include
#include <list>
void test_mask( int arg, int mask )
{
BOOST_MESSAGE( arg << " " << mask );
BOOST_CHECK( (arg & mask) != 0 );
}
struct sub_test_suite : public test_suite {
sub_test_suite()
{
parameters_list.push_back( 1 );
parameters_list.push_back( 5 );
parameters_list.push_back( 6 );
parameters_list.push_back( 7 );
parameters_list.push_back( 140 );
boost::function1 f = bind( &test_mask, _1, 0x80 );
add( BOOST_PARAM_TEST_CASE( f, parameters_list.begin(),
parameters_list.end() ) );
}
std::list<int> parameters_list;
};
//__________________________________________________________________________
__//
test_suite*
init_unit_test_suite( int argc, char* argv[] ) {
test_suite* test = BOOST_TEST_SUITE( "Example" );
test->add( new sub_test_suite );
return test;
}
Thanks for report.
Gennadiy.