• Home
  • Raw
  • Download

Lines Matching refs:testset

63    assoc_type testset(values.begin(), values.end());  in test_container_from_iterator()  local
67 sz_type sz = testset.size(); in test_container_from_iterator()
68 for(it_type b(testset.begin()), e(testset.end()); b != e; ++b) in test_container_from_iterator()
73 BOOST_TEST(&s == &testset); in test_container_from_iterator()
75 BOOST_TEST(testset.size() == (sz-1)); in test_container_from_iterator()
77 BOOST_TEST(testset.size() == sz); in test_container_from_iterator()
96 assoc_type testset (values.begin(), values.begin() + values.size()); in test_insert_erase_burst() local
97 TEST_INTRUSIVE_SEQUENCE_EXPECTED(testset, testset.begin()); in test_insert_erase_burst()
98 testset.check(); in test_insert_erase_burst()
99 iterator it(testset.begin()), itend(testset.end()); in test_insert_erase_burst()
102 it = testset.erase(it); in test_insert_erase_burst()
103 testset.check(); in test_insert_erase_burst()
105 BOOST_TEST(testset.empty()); in test_insert_erase_burst()
109 assoc_type testset; in test_insert_erase_burst() local
119 testset.insert(*it_vector[i]); in test_insert_erase_burst()
120 testset.check(); in test_insert_erase_burst()
122 TEST_INTRUSIVE_SEQUENCE_EXPECTED(testset, testset.begin()); in test_insert_erase_burst()
126 testset.erase(testset.iterator_to(*it_vector[i])); in test_insert_erase_burst()
127 testset.check(); in test_insert_erase_burst()
129 BOOST_TEST(testset.empty()); in test_insert_erase_burst()
213 assoc_type testset (values.begin(), values.begin() + values.size()); in test_container_from_end() local
214 BOOST_TEST (testset == assoc_type::container_from_end_iterator(testset.end())); in test_container_from_end()
215 BOOST_TEST (testset == assoc_type::container_from_end_iterator(testset.cend())); in test_container_from_end()
230 assoc_type testset (values.begin(), values.end()); in test_splay_up() local
231 num_values = testset.size(); in test_splay_up()
232 original_testset = value_cont_type(testset.begin(), testset.end()); in test_splay_up()
236 assoc_type testset (values.begin(), values.end()); in test_splay_up() local
238 iterator it = testset.begin(); in test_splay_up()
240 testset.splay_up(it); in test_splay_up()
242 BOOST_TEST (testset.size() == num_values); in test_splay_up()
243 iterator it = testset.begin(); in test_splay_up()
265 assoc_type testset (values.begin(), values.end()); in test_splay_down() local
266 num_values = testset.size(); in test_splay_down()
267 original_testset = value_cont_type(testset.begin(), testset.end()); in test_splay_down()
271 assoc_type testset (values.begin(), values.end()); in test_splay_down() local
272 BOOST_TEST(testset.size() == num_values); in test_splay_down()
274 iterator it = testset.begin(); in test_splay_down()
276 BOOST_TEST(*it == *testset.splay_down(*it)); in test_splay_down()
278 BOOST_TEST (testset.size() == num_values); in test_splay_down()
279 iterator it = testset.begin(); in test_splay_down()
298 assoc_type testset (values.begin(), values.end()); in test_rebalance() local
299 original_testset.assign(testset.begin(), testset.end()); in test_rebalance()
302 assoc_type testset(values.begin(), values.end()); in test_rebalance() local
303 testset.rebalance(); in test_rebalance()
304 TEST_INTRUSIVE_SEQUENCE_EXPECTED(original_testset, testset.begin()); in test_rebalance()
310 assoc_type testset(values.begin(), values.end()); in test_rebalance() local
311 numdata = testset.size(); in test_rebalance()
315 assoc_type testset(values.begin(), values.end()); in test_rebalance() local
316 typename assoc_type::iterator it = testset.begin(); in test_rebalance()
318 testset.rebalance_subtree(it); in test_rebalance()
319 TEST_INTRUSIVE_SEQUENCE_EXPECTED(original_testset, testset.begin()); in test_rebalance()
331 assoc_type testset; in test_insert_before() local
336 testset.push_back(*it); in test_insert_before()
338 BOOST_TEST(testset.size() == values.size()); in test_insert_before()
339 TEST_INTRUSIVE_SEQUENCE_EXPECTED(values, testset.begin()); in test_insert_before()
342 assoc_type testset; in test_insert_before() local
346 testset.push_front(*it); in test_insert_before()
351 BOOST_TEST(testset.size() == values.size()); in test_insert_before()
352 TEST_INTRUSIVE_SEQUENCE_EXPECTED(values, testset.begin()); in test_insert_before()
355 assoc_type testset; in test_insert_before() local
358 testset.insert_before(testset.end(), *values.rbegin()); in test_insert_before()
359 testset.insert_before(testset.begin(), *values.begin()); in test_insert_before()
363 testset.insert_before(it_pos, *it); in test_insert_before()
365 BOOST_TEST(testset.size() == values.size()); in test_insert_before()
366 TEST_INTRUSIVE_SEQUENCE_EXPECTED(values, testset.begin()); in test_insert_before()