From 20e7bd082a33cd552059dfeb819012cc5a72437a Mon Sep 17 00:00:00 2001 From: Stephan Brown Date: Thu, 2 Feb 2017 15:21:50 -0800 Subject: [PATCH] unittests: Remove geomag tests which are now covered in systemcmds tests. --- unittests/CMakeLists.txt | 2 -- unittests/geomag_test.cpp | 16 ---------------- 2 files changed, 18 deletions(-) delete mode 100644 unittests/geomag_test.cpp diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index f338d4ddee..2c76e6f2d3 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -110,5 +110,3 @@ add_executable(param_test param_test.cpp uorb_stub.cpp ${PX4_SRC}/modules/systemlib/param/param.c) target_link_libraries(param_test ${PX4_PLATFORM}) add_gtest(param_test) -add_executable(geomag_test geomag_test.cpp) -add_gtest(geomag_test) diff --git a/unittests/geomag_test.cpp b/unittests/geomag_test.cpp deleted file mode 100644 index d924dd0446..0000000000 --- a/unittests/geomag_test.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include - -#include "gtest/gtest.h" - -TEST(GeoMagTest, IndexBoundsCheck) -{ - unsigned index = get_lookup_table_index(90.0f, SAMPLING_MIN_LAT, SAMPLING_MAX_LAT); - ASSERT_EQ((unsigned)11, index); - index = get_lookup_table_index(-90.0f, SAMPLING_MIN_LAT, SAMPLING_MAX_LAT); - ASSERT_EQ((unsigned)0, index); - index = get_lookup_table_index(180.0f, SAMPLING_MIN_LON, SAMPLING_MAX_LON); - ASSERT_EQ((unsigned)35, index); - index = get_lookup_table_index(-180.0f, SAMPLING_MIN_LON, SAMPLING_MAX_LON); - ASSERT_EQ((unsigned)0, index); -} -