update unit tests

This commit is contained in:
Mathew Sutcliffe
2013-08-14 03:28:19 +01:00
parent a6756f2043
commit 586be27502
3 changed files with 1 additions and 16 deletions

View File

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

View File

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

View File

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