aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/math_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests/math_test.cpp')
-rw-r--r--host/tests/math_test.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/host/tests/math_test.cpp b/host/tests/math_test.cpp
index 575cfe071..4714f6625 100644
--- a/host/tests/math_test.cpp
+++ b/host/tests/math_test.cpp
@@ -9,8 +9,12 @@
#include <stdint.h>
#include <boost/test/unit_test.hpp>
-// We need an empty test
-BOOST_AUTO_TEST_CASE(test_)
+BOOST_AUTO_TEST_CASE(test_lcm)
{
- BOOST_CHECK_EQUAL(true, true);
+ BOOST_CHECK_EQUAL(uhd::math::lcm<int>(2, 3), 6);
+}
+
+BOOST_AUTO_TEST_CASE(test_gcd)
+{
+ BOOST_CHECK_EQUAL(uhd::math::gcd<int>(6, 15), 3);
}