From 9e2218d57b967d8756c90785f753987d65f5a4b2 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Mon, 26 Jul 2010 12:02:57 -0700 Subject: fixed template problems in gain_group_test --- host/test/gain_group_test.cpp | 16 ++++++++-------- 1 file 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); -- cgit v1.2.3