39 using Range = pair<unsigned, unsigned>;
40 for (RM r: {RM(), RM(1, 10), RM(Range(2, 10))})
55 using Range = pair<unsigned, unsigned>;
57 m.unionWith(Range(1, 2));
59 m.unionWith(Range(50, 250));
61 m.unionWith(Range(10, 16));
76 using Range = pair<unsigned, unsigned>;
78 m.unionWith(Range(3, 6));
80 m.unionWith(Range(50, 50));
82 m.unionWith(Range(0, 0));
84 m.unionWith(Range(1, 1));
86 m.unionWith(Range(2, 2));
88 m.unionWith(Range(3, 3));
95 using Range = pair<unsigned, unsigned>;
97 m.unionWith(Range(10, 20));
99 m.unionWith(Range(30, 40));
101 m.unionWith(Range(15, 30));
103 m.unionWith(Range(50, 60));
104 m.unionWith(Range(45, 55));
107 m.unionWith(Range(15, 56));
109 m.unionWith(Range(15, 65));
111 m.unionWith(Range(5, 70));
118 using Range = pair<unsigned, unsigned>;
119 RM m(Range(0, 2000));
120 m.unionWith(7).unionWith(9);
122 m.unionWith(7).unionWith(9);
127 m += Range(1000, 2000);
135 using Range = pair<unsigned, unsigned>;
136 RM m(Range(0, 2000));
137 m.unionWith(Range(7, 9));
139 m.unionWith(Range(200, 205));
141 vector<unsigned> elements;
142 copy(m.begin(), m.end(), back_inserter(elements));
143 BOOST_CHECK(elements == (vector<unsigned>{7, 8, 11, 200, 201, 202, 203, 204}));
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::hash for asio::adress
BOOST_AUTO_TEST_CASE(iterator)
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_AUTO_TEST_SUITE_END()
Set of elements of a certain "ground range" representable by unions of ranges inside this ground rang...
Helper functions to work with json::spirit and test files.
#define BOOST_CHECK(expr)