decorator_00.run.cpp 634 B

123456789101112131415161718192021
  1. // (C) Copyright Andrzej Krzemienski 2015.
  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 decorator_00
  8. #include <boost/test/included/unit_test.hpp>
  9. #include <boost/test/data/test_case.hpp>
  10. namespace utf = boost::unit_test;
  11. namespace data = boost::unit_test::data;
  12. BOOST_TEST_DECORATOR(* utf::description("with description"))
  13. BOOST_DATA_TEST_CASE(test_1, data::xrange(4))
  14. {
  15. BOOST_TEST(sample >= 0);
  16. }
  17. //]