example13.run.cpp 680 B

123456789101112131415161718192021222324252627
  1. // (C) Copyright Gennadiy Rozental 2011-2015.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //[example_code
  7. #include <boost/test/included/unit_test.hpp>
  8. using namespace boost::unit_test;
  9. void free_test_function()
  10. {
  11. BOOST_TEST( true /* test assertion */ );
  12. }
  13. test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
  14. {
  15. if( framework::master_test_suite().argc > 1 )
  16. return 0;
  17. framework::master_test_suite().
  18. add( BOOST_TEST_CASE( &free_test_function ) );
  19. return 0;
  20. }
  21. //]