diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-20 16:52:46 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-20 16:52:46 -0800 |
commit | c14bbffbebb817fc1c622785094268fe68164c60 (patch) | |
tree | 9429de4109e1f8a57f8a3818ea783c9866eb359a /host/tests | |
parent | f76ace93b6ae24e766a1dd2b56f92204762d8ddb (diff) | |
download | uhd-c14bbffbebb817fc1c622785094268fe68164c60.tar.gz uhd-c14bbffbebb817fc1c622785094268fe68164c60.tar.bz2 uhd-c14bbffbebb817fc1c622785094268fe68164c60.zip |
uhd: change constants to doubles for BOOST_CHECK_CLOSE
Diffstat (limited to 'host/tests')
-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) |