]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
12 | void free_test_function() | |
13 | { | |
14 | BOOST_TEST( 2 == 1 ); | |
15 | } | |
16 | ||
17 | test_suite* init_unit_test_suite( int, char* [] ) | |
18 | { | |
19 | framework::master_test_suite(). | |
20 | add( BOOST_TEST_CASE( &free_test_function ), 2 ); | |
21 | ||
22 | return 0; | |
23 | } | |
24 | //] |