2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-01 09:02:08 +00:00
Files
test/doc/v2/examples/example13.cpp
2014-02-02 02:06:26 +01:00

20 lines
395 B
C++
Executable File

//[example13
#include <boost/test/included/unit_test.hpp>
using namespace boost::unit_test;
void free_test_function()
{
BOOST_CHECK( true /* test assertion */ );
}
test_suite* init_unit_test_suite( int argc, char* argv[] )
{
if( framework::master_test_suite().argc > 1 )
return 0;
framework::master_test_suite().
add( BOOST_TEST_CASE( &free_test_function ) );
return 0;
}
//]