]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/test/doc/examples/dataset_example65.run.cpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / test / doc / examples / dataset_example65.run.cpp
CommitLineData
7c673cae
FG
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
6// See http://www.boost.org/libs/test for the library home page.
7
8//[example_code
9#define BOOST_TEST_MODULE dataset_example65
10#include <boost/test/included/unit_test.hpp>
11#include <boost/test/data/test_case.hpp>
12#include <boost/test/data/monomorphic.hpp>
13
14namespace bdata = boost::unit_test::data;
15
16
17BOOST_DATA_TEST_CASE(
18 test1,
19 bdata::make(2),
20 singleton)
21{
22 std::cout
23 << "test 1: "
24 << singleton << std::endl;
25 BOOST_TEST(singleton == 2);
26}
27
28BOOST_DATA_TEST_CASE(
29 test2,
30 bdata::xrange(3) ^ bdata::make(2),
31 xr, singleton)
32{
33 std::cout
34 << "test 2: "
35 << xr << ", " << singleton << std::endl;
36 BOOST_TEST(singleton == 2);
37}
38//]