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); -} -