The library provides both an automatic and manual way of registering test cases and test suites to be executed by the test runner. Automatic registration is the simplest way because it enables you to construct a test tree just by declaring test units. In this recipe, we will see how to create test suites and test cases, using the single-header version of the library, and how to run tests.
Writing and invoking tests with Boost.Test
Getting ready
To exemplify the creation of test suites and test cases, we will use the following class which represents a three-dimensional point:
class point3d
{
int x_;
int y_;
int z_;
public:
point3d(int const x = 0,
int const y = 0,
int const z = 0):x_(x), y_(y), z_(z) ...