forked from organicmaps/organicmaps
[transit] Update for tests.
This commit is contained in:
parent
e350506cc2
commit
301710c2cb
2 changed files with 3 additions and 4 deletions
|
@ -93,8 +93,7 @@ bool SubwayConverter::Convert()
|
|||
if (!ConvertStops())
|
||||
return false;
|
||||
|
||||
if (!ConvertTransfers())
|
||||
return false;
|
||||
ConvertTransfers();
|
||||
|
||||
// In contrast to the GTFS gates OSM gates for subways shouldn't be empty.
|
||||
if (!ConvertGates())
|
||||
|
@ -387,7 +386,7 @@ bool SubwayConverter::ConvertTransfers()
|
|||
}
|
||||
}
|
||||
|
||||
// We don't count as transfers tranfer points between lines on the same route, so we skip them.
|
||||
// We don't count as transfers transfer points between lines on the same route, so we skip them.
|
||||
if (routeToStops.size() < 2)
|
||||
{
|
||||
LOG(LINFO, ("Skip transfer on route", transferId));
|
||||
|
|
|
@ -345,7 +345,7 @@ public:
|
|||
TEST_EQUAL(feed.m_stops.m_data.size(), 5, ());
|
||||
TEST_EQUAL(feed.m_edges.m_data.size(), 4, ());
|
||||
TEST_EQUAL(feed.m_edgesTransfers.m_data.size(), 1, ());
|
||||
TEST_EQUAL(feed.m_transfers.m_data.size(), 1, ());
|
||||
TEST_EQUAL(feed.m_transfers.m_data.size(), 0, ());
|
||||
TEST_EQUAL(feed.m_gates.m_data.size(), 1, ());
|
||||
|
||||
// Two initial shapes must be merged into one.
|
||||
|
|
Loading…
Add table
Reference in a new issue