Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2015. The current version is 1.90.0.
Declares and registers a data-driven test case, using a particular dataset.
Several forms of the macro are available.
BOOST_DATA_TEST_CASE(test_case_name, dataset) { BOOST_TEST(sample != 0); }
should be used for datasets with arity 1. In the body of the test case,
the samples of the dataset are taken by the variable sample.
BOOST_DATA_TEST_CASE(test_case_name, dataset, var1) { BOOST_TEST(var1 != 0); }
same as the first form, but the samples are taken by the variable var1 instead of the variable sample
BOOST_DATA_TEST_CASE(test_case_name, dataset, var1, var2..., varN) { BOOST_TEST(var1 != 0); //... BOOST_TEST(varN != 0); }
same as the second form, but for dataset of arity N.
See here for more details.