Minimal Boost C++ Unit test example

example.cpp
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE( test1 )
{
    BOOST_CHECK( 2 == 1 );
}

 


Check out similar posts by category: C/C++