diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-07-26 12:02:57 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-07-26 12:02:57 -0700 |
commit | 6799b5bec4403cc4458181cb39fae2f960f2a7cd (patch) | |
tree | aed81f970f28330015e663549c333e0415050dec /host | |
parent | 8d18814cc33cc9a703da5e7eeee00a0d2499074b (diff) | |
download | uhd-6799b5bec4403cc4458181cb39fae2f960f2a7cd.tar.gz uhd-6799b5bec4403cc4458181cb39fae2f960f2a7cd.tar.bz2 uhd-6799b5bec4403cc4458181cb39fae2f960f2a7cd.zip |
fixed template problems in gain_group_test
Diffstat (limited to 'host')
-rw-r--r-- | host/test/gain_group_test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/host/test/gain_group_test.cpp b/host/test/gain_group_test.cpp index 4d337afb9..6a6af8eb2 100644 --- a/host/test/gain_group_test.cpp +++ b/host/test/gain_group_test.cpp @@ -101,10 +101,10 @@ 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().min, -20, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().max, 100, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().step, 0.1, tolerance); + BOOST_CHECK_CLOSE(gg->get_value(), float(80), tolerance); + BOOST_CHECK_CLOSE(gg->get_range().min, float(-20), tolerance); + BOOST_CHECK_CLOSE(gg->get_range().max, float(100), tolerance); + BOOST_CHECK_CLOSE(gg->get_range().step, float(0.1), tolerance); } BOOST_AUTO_TEST_CASE(test_gain_group_priority){ @@ -112,10 +112,10 @@ 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().min, -20, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().max, 100, tolerance); - BOOST_CHECK_CLOSE(gg->get_range().step, 0.1, tolerance); + BOOST_CHECK_CLOSE(gg->get_value(), float(80), tolerance); + BOOST_CHECK_CLOSE(gg->get_range().min, float(-20), tolerance); + BOOST_CHECK_CLOSE(gg->get_range().max, float(100), tolerance); + BOOST_CHECK_CLOSE(gg->get_range().step, float(0.1), tolerance); //test the the higher priority gain got filled first (gain 2) BOOST_CHECK_CLOSE(g2.get_value(), g2.get_range().max, tolerance); |