mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-05 08:55:59 +08:00
refs #863 Fixed wrong test that had been masked by CRemoteAircraftProviderDummy being too clever.
This commit is contained in:
@@ -63,7 +63,7 @@ namespace BlackMiscTest
|
||||
const qint64 ts = 1425000000000; // QDateTime::currentMSecsSinceEpoch();
|
||||
const qint64 deltaT = 5000; // ms
|
||||
const qint64 offset = 5000;
|
||||
for (int i = 0; i < IRemoteAircraftProvider::MaxSituationsPerCallsign; i++)
|
||||
for (int i = IRemoteAircraftProvider::MaxSituationsPerCallsign - 1; i >= 0; i--)
|
||||
{
|
||||
CAircraftSituation s(getTestSituation(cs, i, ts, deltaT, offset));
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace BlackMiscTest
|
||||
}
|
||||
|
||||
constexpr int partsCount = 10;
|
||||
for (int i = 0; i < partsCount; i++)
|
||||
for (int i = partsCount - 1; i >= 0; i--)
|
||||
{
|
||||
CAircraftParts p(getTestParts(i, ts, deltaT));
|
||||
interpolator.addAircraftParts(p);
|
||||
|
||||
Reference in New Issue
Block a user