From 14f606d158b8b128c6aa00a434ebb974cf16a8f8 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Mon, 4 Mar 2013 01:13:05 +0000 Subject: [PATCH] rtree: errors in test fixed [SVN r83290] --- test/rtree/test_rtree.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/rtree/test_rtree.hpp b/test/rtree/test_rtree.hpp index 91c3eb910..499f7283c 100644 --- a/test/rtree/test_rtree.hpp +++ b/test/rtree/test_rtree.hpp @@ -899,7 +899,7 @@ void test_copy_assignment_swap_move(Rtree const& tree, Box const& qbox) t1.query(bgi::intersects(qbox), std::back_inserter(output)); test_exactly_the_same_outputs(t1, output, expected_output); - Rtree t2(tree, tree.get_allocator()); + Rtree t2(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); t2.swap(t1); BOOST_CHECK(tree.empty() == t2.empty()); BOOST_CHECK(tree.size() == t2.size()); @@ -947,7 +947,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const tree.query(bgi::intersects(qbox), std::back_inserter(expected_output)); { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); BOOST_FOREACH(Value const& v, input) t.insert(v); BOOST_CHECK(tree.size() == t.size()); @@ -956,7 +956,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const test_exactly_the_same_outputs(t, output, expected_output); } { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); std::copy(input.begin(), input.end(), bgi::inserter(t)); BOOST_CHECK(tree.size() == t.size()); std::vector output; @@ -978,7 +978,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const test_exactly_the_same_outputs(t, output, expected_output); } { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); t.insert(input.begin(), input.end()); BOOST_CHECK(tree.size() == t.size()); std::vector output; @@ -986,7 +986,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const test_exactly_the_same_outputs(t, output, expected_output); } { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); t.insert(input); BOOST_CHECK(tree.size() == t.size()); std::vector output; @@ -995,7 +995,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const } { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); BOOST_FOREACH(Value const& v, input) bgi::insert(t, v); BOOST_CHECK(tree.size() == t.size()); @@ -1004,7 +1004,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const test_exactly_the_same_outputs(t, output, expected_output); } { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); bgi::insert(t, input.begin(), input.end()); BOOST_CHECK(tree.size() == t.size()); std::vector output; @@ -1012,7 +1012,7 @@ void test_create_insert(Rtree & tree, std::vector const& input, Box const test_exactly_the_same_outputs(t, output, expected_output); } { - Rtree t(tree, tree.get_allocator()); + Rtree t(tree.parameters(), tree.indexable_get(), tree.value_eq(), tree.get_allocator()); bgi::insert(t, input); BOOST_CHECK(tree.size() == t.size()); std::vector output;