fork download
  1. #include <boost/test/included/unit_test.hpp>
  2. #include <boost/test/parameterized_test.hpp>
  3.  
  4. #define BOOST_AUTO_TEST_CASE_PARAM( function, begin, end ) \
  5. BOOST_AUTO_TU_REGISTRAR( BOOST_JOIN(registrar, __LINE__) )( \
  6.   BOOST_PARAM_TEST_CASE(function, begin, end) )
  7.  
  8. void free_test_function( int i )
  9. {
  10. BOOST_CHECK( i < 4 /* test assertion */ );
  11. }
  12.  
  13. int params[] = { 1, 2, 3, 4, 5 };
  14. BOOST_AUTO_TEST_CASE_PARAM( &free_test_function, params, params+5 );
  15.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty