Commit 91ccb152 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by Joseph Mirabel
Browse files

use BOOST_TEST_MESSAGE instead of BOOST_MESSAGE

BOOST_MESSAGE has been deprecated for 9 years:
http://www.boost.org/doc/libs/1_35_0/libs/test/doc/components/test_tools/reference/deprecated.html
parent c7e25ee3
......@@ -367,11 +367,11 @@ BOOST_AUTO_TEST_CASE (nearestNeighbor) {
Nodes_t knearest = r->nearestNeighbor()->KnearestSearch
(nodes[0]->configuration(), nodes[0]->connectedComponent (), 3, dist);
for (Nodes_t::const_iterator it = knearest.begin (); it != knearest.end(); ++it) {
BOOST_MESSAGE ("q = [" << (*it)->configuration()->transpose() << "] - dist : " << (*distance) (*nodes[0]->configuration(), *(*it)->configuration()));
BOOST_TEST_MESSAGE ("q = [" << (*it)->configuration()->transpose() << "] - dist : " << (*distance) (*nodes[0]->configuration(), *(*it)->configuration()));
}
for (std::vector<NodePtr_t>::const_iterator it = nodes.begin (); it != nodes.end(); ++it) {
Configuration_t& q = *(*it)->configuration();
BOOST_MESSAGE ("[" << q.transpose() << "] - dist : " << (*distance) (*nodes[0]->configuration(), q));
BOOST_TEST_MESSAGE ("[" << q.transpose() << "] - dist : " << (*distance) (*nodes[0]->configuration(), q));
}
}
BOOST_AUTO_TEST_SUITE_END()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment