summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-26 12:02:57 -0700
committerJosh Blum <josh@joshknows.com>2010-07-27 15:45:49 -0700
commit9e2218d57b967d8756c90785f753987d65f5a4b2 (patch)
treed4dd474c769f14973a6e854a23d2a386733e5800 /host
parentd769ff8cc3dbb579b3c050a9b184f2bdd5c9a71d (diff)
downloaduhd-9e2218d57b967d8756c90785f753987d65f5a4b2.tar.gz
uhd-9e2218d57b967d8756c90785f753987d65f5a4b2.tar.bz2
uhd-9e2218d57b967d8756c90785f753987d65f5a4b2.zip
fixed template problems in gain_group_test
Diffstat (limited to 'host')
-rw-r--r--host/test/gain_group_test.cpp16
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);