From 586be27502c4580d31bab32a4b8b3bdd586ed3da Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Wed, 14 Aug 2013 03:28:19 +0100 Subject: [PATCH] update unit tests --- tests/blackmisc/testaviation.cpp | 10 ---------- tests/blackmisc/testaviation.h | 5 ----- tests/blackmisc/testgeo.cpp | 2 +- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/blackmisc/testaviation.cpp b/tests/blackmisc/testaviation.cpp index 4652a9100..7bec3cda6 100644 --- a/tests/blackmisc/testaviation.cpp +++ b/tests/blackmisc/testaviation.cpp @@ -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 */ diff --git a/tests/blackmisc/testaviation.h b/tests/blackmisc/testaviation.h index 45ffbd2f0..b3c153ee1 100644 --- a/tests/blackmisc/testaviation.h +++ b/tests/blackmisc/testaviation.h @@ -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 */ diff --git a/tests/blackmisc/testgeo.cpp b/tests/blackmisc/testgeo.cpp index 6ea4cc34d..211bd098c 100644 --- a/tests/blackmisc/testgeo.cpp +++ b/tests/blackmisc/testgeo.cpp @@ -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