mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
update unit tests
This commit is contained in:
@@ -44,16 +44,6 @@ void CTestAviation::headingBasics()
|
||||
QVERIFY2(h2.unitValueToDouble() == 360, "Value shall be 360");
|
||||
}
|
||||
|
||||
/*
|
||||
* Vertical positions
|
||||
*/
|
||||
void CTestAviation::verticalPosition()
|
||||
{
|
||||
CAviationVerticalPositions vp1 = CAviationVerticalPositions::fromAltitudeAndElevationInFt(10000.0, 3000.0);
|
||||
CAviationVerticalPositions vp2 = vp1;
|
||||
QVERIFY2(vp1 == vp2, "Values shall be equal");
|
||||
}
|
||||
|
||||
/*
|
||||
* COM and NAV units
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#include "blackmisc/pqconstants.h"
|
||||
#include "blackmisc/avheading.h"
|
||||
#include "blackmisc/avverticalpositions.h"
|
||||
#include "blackmisc/aviocomsystem.h"
|
||||
#include "blackmisc/avionavsystem.h"
|
||||
#include "blackmisc/aviotransponder.h"
|
||||
@@ -36,10 +35,6 @@ private slots:
|
||||
* \brief Basic unit tests for physical units
|
||||
*/
|
||||
void headingBasics();
|
||||
/*!
|
||||
* \brief Vertical positions
|
||||
*/
|
||||
void verticalPosition();
|
||||
/*!
|
||||
* \brief COM and NAV units
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ void CTestGeo::geoBasics()
|
||||
CCoordinateEcef ecefReconvert = CCoordinateTransformation::toEcef(nedVec);
|
||||
|
||||
// check against rounded reconvert
|
||||
QVERIFY2(mediumEcefVec.roundedVector() == ecefReconvert.roundedVector(), "Reconverted geo vector should be equal");
|
||||
QVERIFY2(mediumEcefVec.rounded() == ecefReconvert.rounded(), "Reconverted geo vector should be equal");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user