• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
6 //  See http://www.boost.org/libs/test for the library home page.
7 
8 //[example_code
9 #include <boost/test/included/unit_test.hpp>
10 using namespace boost::unit_test;
11 
free_test_function()12 void free_test_function()
13 {
14   BOOST_TEST( true /* test assertion */ );
15 }
16 
init_unit_test_suite(int,char * [])17 test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
18 {
19   if( framework::master_test_suite().argc > 1 )
20     return 0;
21 
22   framework::master_test_suite().
23     add( BOOST_TEST_CASE( &free_test_function ) );
24 
25   return 0;
26 }
27 //]
28