From c14bbffbebb817fc1c622785094268fe68164c60 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 20 Jan 2011 16:52:46 -0800 Subject: uhd: change constants to doubles for BOOST_CHECK_CLOSE --- host/tests/gain_group_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'host/tests/gain_group_test.cpp') 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) -- cgit v1.2.3