mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-10 11:36:08 +08:00
Upfront of refs #369
* consolidated ICoordinateGeodetic (e.g. fixed nested properties) * shifted common functionality for objects/containers with callsign into interface * shifted common functionality for objects/containers with geo position into interface * shifted common functionality for objects/containers with timestamp into interface * updated corresponding value objects / specialized lists * adjusted all places where renamed functions are used
This commit is contained in:
@@ -13,22 +13,21 @@ using namespace BlackMisc::PhysicalQuantities;
|
||||
namespace BlackCoreTest
|
||||
{
|
||||
|
||||
/*
|
||||
* Interpolator tests
|
||||
*/
|
||||
void CTestInterpolator::interpolatorBasics()
|
||||
{
|
||||
IInterpolator *interpolator = new CInterpolatorLinear();
|
||||
/*
|
||||
* Interpolator tests
|
||||
*/
|
||||
void CTestInterpolator::interpolatorBasics()
|
||||
{
|
||||
IInterpolator *interpolator = new CInterpolatorLinear();
|
||||
QVERIFY2(!interpolator->hasEnoughAircraftSituations(), "Interpolator cannot have enough situations. They should be 0!");
|
||||
|
||||
QVERIFY2(!interpolator->hasEnoughAircraftSituations(), "Interpolator cannot have enough situations. They should be 0!");
|
||||
CAircraftSituation situation;
|
||||
interpolator->addAircraftSituation(situation);
|
||||
QTest::qSleep(6100);
|
||||
situation.setAltitude(CAltitude(500, CAltitude::MeanSeaLevel, CLengthUnit::ft()));
|
||||
interpolator->addAircraftSituation(situation);
|
||||
|
||||
CAircraftSituation situation;
|
||||
interpolator->addAircraftSituation(situation);
|
||||
QTest::qSleep(6100);
|
||||
situation.setHeight(CLength(500, CLengthUnit::ft()));
|
||||
interpolator->addAircraftSituation(situation);
|
||||
|
||||
QVERIFY2(interpolator->hasEnoughAircraftSituations(), "Interpolator should have enough situations!");
|
||||
}
|
||||
QVERIFY2(interpolator->hasEnoughAircraftSituations(), "Interpolator should have enough situations!");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user