From 666c36a57ffe619027332a279f789c7052232ec9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 18 Feb 2022 17:56:44 +1100 Subject: [PATCH] Filter: add trivial test for ModeFilter get method (float version) --- libraries/Filter/tests/test_modefilter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/Filter/tests/test_modefilter.cpp b/libraries/Filter/tests/test_modefilter.cpp index 0e746ad93d..bdb5114b9c 100644 --- a/libraries/Filter/tests/test_modefilter.cpp +++ b/libraries/Filter/tests/test_modefilter.cpp @@ -90,6 +90,8 @@ TEST(ModeFilterTest, Float_Size5) EXPECT_FLOAT_EQ(4, filtf_fail.apply(6)); EXPECT_FLOAT_EQ(4, filtf_fail.apply(7)); EXPECT_FLOAT_EQ(5, filtf_fail.apply(8)); + + EXPECT_FLOAT_EQ(5, filtf_fail.get()); } AP_GTEST_MAIN()