Remove warnings and fix tests
This commit is contained in:
parent
b41af5f580
commit
4950e044ba
@ -393,7 +393,7 @@ template <class EdgeDataT> class InternalDataFacade final : public BaseDataFacad
|
|||||||
std::pair<PhantomNode, PhantomNode>
|
std::pair<PhantomNode, PhantomNode>
|
||||||
NearestPhantomNodeWithAlternativeFromBigComponent(const FixedPointCoordinate &input_coordinate,
|
NearestPhantomNodeWithAlternativeFromBigComponent(const FixedPointCoordinate &input_coordinate,
|
||||||
const int bearing = 0,
|
const int bearing = 0,
|
||||||
const int bearing_range = 180)
|
const int bearing_range = 180) override final
|
||||||
{
|
{
|
||||||
if (!m_static_rtree.get())
|
if (!m_static_rtree.get())
|
||||||
{
|
{
|
||||||
|
@ -417,7 +417,7 @@ template <class EdgeDataT> class SharedDataFacade final : public BaseDataFacade<
|
|||||||
std::pair<PhantomNode, PhantomNode>
|
std::pair<PhantomNode, PhantomNode>
|
||||||
NearestPhantomNodeWithAlternativeFromBigComponent(const FixedPointCoordinate &input_coordinate,
|
NearestPhantomNodeWithAlternativeFromBigComponent(const FixedPointCoordinate &input_coordinate,
|
||||||
const int bearing = 0,
|
const int bearing = 0,
|
||||||
const int bearing_range = 180)
|
const int bearing_range = 180) override final
|
||||||
{
|
{
|
||||||
if (!m_static_rtree.get() || CURRENT_TIMESTAMP != m_static_rtree->first)
|
if (!m_static_rtree.get() || CURRENT_TIMESTAMP != m_static_rtree->first)
|
||||||
{
|
{
|
||||||
|
@ -439,8 +439,8 @@ BOOST_AUTO_TEST_CASE(bearing_tests)
|
|||||||
{
|
{
|
||||||
auto results = query.NearestPhantomNodes(input, 5);
|
auto results = query.NearestPhantomNodes(input, 5);
|
||||||
BOOST_CHECK_EQUAL(results.size(), 2);
|
BOOST_CHECK_EQUAL(results.size(), 2);
|
||||||
BOOST_CHECK_EQUAL(results.back().second.forward_node_id, 0);
|
BOOST_CHECK_EQUAL(results.back().phantom_node.forward_node_id, 0);
|
||||||
BOOST_CHECK_EQUAL(results.back().second.reverse_node_id, 1);
|
BOOST_CHECK_EQUAL(results.back().phantom_node.reverse_node_id, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -451,10 +451,10 @@ BOOST_AUTO_TEST_CASE(bearing_tests)
|
|||||||
{
|
{
|
||||||
auto results = query.NearestPhantomNodes(input, 5, 45, 10);
|
auto results = query.NearestPhantomNodes(input, 5, 45, 10);
|
||||||
BOOST_CHECK_EQUAL(results.size(), 2);
|
BOOST_CHECK_EQUAL(results.size(), 2);
|
||||||
BOOST_CHECK_EQUAL(results[0].second.forward_node_id, 1);
|
BOOST_CHECK_EQUAL(results[0].phantom_node.forward_node_id, 1);
|
||||||
BOOST_CHECK_EQUAL(results[0].second.reverse_node_id, SPECIAL_NODEID);
|
BOOST_CHECK_EQUAL(results[0].phantom_node.reverse_node_id, SPECIAL_NODEID);
|
||||||
BOOST_CHECK_EQUAL(results[1].second.forward_node_id, SPECIAL_NODEID);
|
BOOST_CHECK_EQUAL(results[1].phantom_node.forward_node_id, SPECIAL_NODEID);
|
||||||
BOOST_CHECK_EQUAL(results[1].second.reverse_node_id, 1);
|
BOOST_CHECK_EQUAL(results[1].phantom_node.reverse_node_id, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -470,10 +470,10 @@ BOOST_AUTO_TEST_CASE(bearing_tests)
|
|||||||
{
|
{
|
||||||
auto results = query.NearestPhantomNodesInRange(input, 11000, 45, 10);
|
auto results = query.NearestPhantomNodesInRange(input, 11000, 45, 10);
|
||||||
BOOST_CHECK_EQUAL(results.size(), 2);
|
BOOST_CHECK_EQUAL(results.size(), 2);
|
||||||
BOOST_CHECK_EQUAL(results[0].second.forward_node_id, 1);
|
BOOST_CHECK_EQUAL(results[0].phantom_node.forward_node_id, 1);
|
||||||
BOOST_CHECK_EQUAL(results[0].second.reverse_node_id, SPECIAL_NODEID);
|
BOOST_CHECK_EQUAL(results[0].phantom_node.reverse_node_id, SPECIAL_NODEID);
|
||||||
BOOST_CHECK_EQUAL(results[1].second.forward_node_id, SPECIAL_NODEID);
|
BOOST_CHECK_EQUAL(results[1].phantom_node.forward_node_id, SPECIAL_NODEID);
|
||||||
BOOST_CHECK_EQUAL(results[1].second.reverse_node_id, 1);
|
BOOST_CHECK_EQUAL(results[1].phantom_node.reverse_node_id, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user