mirror of
https://github.com/boostorg/test.git
synced 2026-01-27 07:22:11 +00:00
22 lines
423 B
C++
Executable File
22 lines
423 B
C++
Executable File
//[example02
|
|
#include <boost/test/included/unit_test.hpp>
|
|
#include <boost/bind.hpp>
|
|
using namespace boost::unit_test;
|
|
|
|
class test_class
|
|
{
|
|
public:
|
|
void test_method()
|
|
{
|
|
BOOST_CHECK( true /* test assertion */ );
|
|
}
|
|
} tester;
|
|
|
|
test_suite* init_unit_test_suite( int argc, char* argv[] )
|
|
{
|
|
framework::master_test_suite().
|
|
add( BOOST_TEST_CASE( boost::bind( &test_class::test_method, &tester )));
|
|
|
|
return 0;
|
|
}
|
|
//]
|