refs #369, revised interpolator, removed addAircraftSituation

This commit is contained in:
Klaus Basan
2015-02-07 14:45:51 +01:00
parent 6aea013b23
commit 58b56ba2f3
4 changed files with 28 additions and 76 deletions

View File

@@ -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