mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refs #748 Add operating attribute to CAirport
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cf3e9f1f67
commit
9acfb89e65
@@ -135,10 +135,10 @@ namespace BlackCoreTest
|
||||
QVERIFY2(this->m_airportReader->getAirports().size() > 0, "No airports");
|
||||
auto heathrow = this->m_airportReader->getAirports().findByIcao("EGLL");
|
||||
QVERIFY2(heathrow.size() == 1, "No Heathrow");
|
||||
QVERIFY2(heathrow[0].isOperating(), "Wrong airport data");
|
||||
|
||||
auto airports = m_airportReader->getAirports();
|
||||
airports.sortByRange(CCoordinateGeodetic(CLatitude(51.5085300, CAngleUnit::deg()), CLongitude(-0.1257400, CAngleUnit::deg()), CLength()), true);
|
||||
qDebug() << airports[0].getIcao() << airports[1].getIcao();
|
||||
QVERIFY2(airports[0].getIcao() == CAirportIcaoCode("EGLW"), "Wrong airport data");
|
||||
|
||||
CApplication::processEventsFor(2500); // make sure events are processed
|
||||
|
||||
Reference in New Issue
Block a user