mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-08 10:45:36 +08:00
refs #369, revised interpolator, removed addAircraftSituation
This commit is contained in:
@@ -18,16 +18,7 @@ namespace BlackCoreTest
|
||||
*/
|
||||
void CTestInterpolator::interpolatorBasics()
|
||||
{
|
||||
IInterpolator *interpolator = new CInterpolatorLinear();
|
||||
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);
|
||||
|
||||
QVERIFY2(interpolator->hasEnoughAircraftSituations(), "Interpolator should have enough situations!");
|
||||
//! \todo what would we test here?
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user