example16.run.cpp 584 B

123456789101112131415161718192021222324
  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( 2 == 1 );
  12. }
  13. test_suite* init_unit_test_suite( int, char* [] )
  14. {
  15. framework::master_test_suite().
  16. add( BOOST_TEST_CASE( &free_test_function ), 2 );
  17. return 0;
  18. }
  19. //]