2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 07:22:11 +00:00
Files
test/doc/v2/examples/example61.cpp
2014-12-09 21:05:03 +01:00

22 lines
486 B
C++

//[example_code
#define BOOST_TEST_MAIN
#include <boost/test/included/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>
namespace data = boost::unit_test::data;
int samples1[] = {1,2};
char const* samples2[] = {"qwerty", "asdfg"};
__BOOST_DATA_TEST_CASE__(
test_name,
data::make(samples1)^samples2,
integer_values,
string_value)
{
std::cout << integer_values << ", " << string_value << std::endl;
}
//]