2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 07:22:11 +00:00
Files
test/doc/v2/examples/example09.cpp
Raffi Enficiaud 2947c58df8 adding a new folder for the quick book doc
trying to figure out how bjam works with this kind of simple configuration
2014-01-23 23:52:01 +01:00

26 lines
692 B
C++
Executable File

#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_CHECK_EQUAL( sizeof(T), 4 );
}
//____________________________________________________________________________//
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;
}
//____________________________________________________________________________//