diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-01-15 14:42:05 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-18 09:37:12 -0800 |
commit | 11c7e561fc29b56ade8ae6ec549b21c533540e8a (patch) | |
tree | a346b7bd7e561efbb8d61de59c4ac2dec4c18d0b /host/tests | |
parent | eb1f8f160b803bae60c2af7be35e42ece3b8a62b (diff) | |
download | uhd-11c7e561fc29b56ade8ae6ec549b21c533540e8a.tar.gz uhd-11c7e561fc29b56ade8ae6ec549b21c533540e8a.tar.bz2 uhd-11c7e561fc29b56ade8ae6ec549b21c533540e8a.zip |
math: Remove uhd::math::log2, replace with std::log2
Now that we're C++11, we can assume the existence of said symbol and
need no more portability hacks.
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/math_test.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/host/tests/math_test.cpp b/host/tests/math_test.cpp index ffdcbb086..575cfe071 100644 --- a/host/tests/math_test.cpp +++ b/host/tests/math_test.cpp @@ -9,11 +9,8 @@ #include <stdint.h> #include <boost/test/unit_test.hpp> -// NOTE: This is not the only math test case, see e.g. special tests -// for fp comparison. - -BOOST_AUTO_TEST_CASE(test_log2) +// We need an empty test +BOOST_AUTO_TEST_CASE(test_) { - double y = uhd::math::log2(16.0); - BOOST_CHECK_EQUAL(y, 4.0); + BOOST_CHECK_EQUAL(true, true); } |