28 lines
732 B
C++
28 lines
732 B
C++
// (C) Copyright Gennadiy Rozental 2011-2015.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
// See http://www.boost.org/libs/test for the library home page.
|
|
|
|
//[example_code
|
|
#include <boost/test/included/unit_test.hpp>
|
|
#include <boost/mpl/list.hpp>
|
|
using namespace boost::unit_test;
|
|
|
|
BOOST_TEST_CASE_TEMPLATE_FUNCTION( my_test, T )
|
|
{
|
|
BOOST_TEST( sizeof(T) == 4U );
|
|
}
|
|
|
|
test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
|
|
{
|
|
typedef boost::mpl::list<int,long,unsigned char> test_types;
|
|
|
|
framework::master_test_suite().
|
|
add( BOOST_TEST_CASE_TEMPLATE( my_test, test_types ) );
|
|
|
|
return 0;
|
|
}
|
|
//]
|