May 2017
Intermediate to advanced
590 pages
17h 18m
English
For the examples presented in this recipe, we will use the following test module:
#define BOOST_TEST_MODULE Controlling output #include <boost/test/included/unit_test.hpp> BOOST_AUTO_TEST_CASE(test_case) { BOOST_TEST(true); } BOOST_AUTO_TEST_SUITE(test_suite) BOOST_AUTO_TEST_CASE(test_case) { int a = 42; BOOST_TEST(a == 0); } BOOST_AUTO_TEST_SUITE_END()
Read now
Unlock full access