dataset_example62.run.cpp 683 B

1234567891011121314151617181920212223242526
  1. // (C) Copyright Raffi Enficiaud 2014.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //[example_code
  7. #define BOOST_TEST_MODULE dataset_example62
  8. #include <boost/test/included/unit_test.hpp>
  9. #include <boost/test/data/test_case.hpp>
  10. #include <boost/test/data/monomorphic.hpp>
  11. namespace data = boost::unit_test::data;
  12. int samples1[] = {1, 2};
  13. int samples2[] = {8, 9, 10};
  14. BOOST_DATA_TEST_CASE(
  15. test1,
  16. data::make(samples1) + samples2,
  17. var)
  18. {
  19. std::cout << var << std::endl;
  20. }
  21. //]