diff options
-rw-r--r-- | host/tests/gain_group_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/tests/gain_group_test.cpp b/host/tests/gain_group_test.cpp index 53142ef21..07eaf146e 100644 --- a/host/tests/gain_group_test.cpp +++ b/host/tests/gain_group_test.cpp @@ -101,9 +101,9 @@ BOOST_AUTO_TEST_CASE(test_gain_group_overall){ //test the overall stuff gg->set_value(80); - BOOST_CHECK_CLOSE(gg->get_value(), 80, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().start(), -20, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().stop(), 100, tolerance); + BOOST_CHECK_CLOSE(gg->get_value(), 80.0, tolerance); + BOOST_CHECK_CLOSE(gg->get_range().start(), -20.0, tolerance); + BOOST_CHECK_CLOSE(gg->get_range().stop(), 100.0, tolerance); BOOST_CHECK_CLOSE(gg->get_range().step(), 0.1, tolerance); } @@ -112,9 +112,9 @@ BOOST_AUTO_TEST_CASE(test_gain_group_priority){ //test the overall stuff gg->set_value(80); - BOOST_CHECK_CLOSE(gg->get_value(), 80, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().start(), -20, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().stop(), 100, tolerance); + BOOST_CHECK_CLOSE(gg->get_value(), 80.0, tolerance); + BOOST_CHECK_CLOSE(gg->get_range().start(), -20.0, tolerance); + BOOST_CHECK_CLOSE(gg->get_range().stop(), 100.0, tolerance); BOOST_CHECK_CLOSE(gg->get_range().step(), 0.1, tolerance); //test the the higher priority gain got filled first (gain 2) |