aboutsummaryrefslogtreecommitdiffstats
path: root/doc/zmq-ctrl/cpp/test
diff options
context:
space:
mode:
authorJörgen Scott <jorgen.scott@gmail.com>2015-02-09 13:36:22 +0100
committerJörgen Scott <jorgen.scott@gmail.com>2015-02-09 13:36:22 +0100
commitb31494c688ad93f2c09688a9061c7d392c6844a7 (patch)
tree095f37e97cdb26daf4cec87e71f2abde4565be7d /doc/zmq-ctrl/cpp/test
parentebdd156e45a520c67201c0382b1971e39bb25b72 (diff)
downloaddabmod-b31494c688ad93f2c09688a9061c7d392c6844a7.tar.gz
dabmod-b31494c688ad93f2c09688a9061c7d392c6844a7.tar.bz2
dabmod-b31494c688ad93f2c09688a9061c7d392c6844a7.zip
added ping method + some cleaning
Diffstat (limited to 'doc/zmq-ctrl/cpp/test')
-rw-r--r--doc/zmq-ctrl/cpp/test/ctrl_test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/zmq-ctrl/cpp/test/ctrl_test.cpp b/doc/zmq-ctrl/cpp/test/ctrl_test.cpp
index 3c38c89..21811d6 100644
--- a/doc/zmq-ctrl/cpp/test/ctrl_test.cpp
+++ b/doc/zmq-ctrl/cpp/test/ctrl_test.cpp
@@ -40,6 +40,11 @@ struct TemplateVars
// made for setting invalid parameters.
BOOST_FIXTURE_TEST_SUITE(test_template1, TemplateVars)
+BOOST_AUTO_TEST_CASE (Ping)
+{
+ BOOST_CHECK(modCtrl.Ping() == true);
+}
+
BOOST_AUTO_TEST_CASE (DigitalGain)
{
BOOST_CHECK(modCtrl.SetDigitalGain(0.5, error) == true);
@@ -75,7 +80,7 @@ BOOST_AUTO_TEST_CASE (Muting)
BOOST_AUTO_TEST_CASE (StaticDelay)
{
- // reset first or else test will fail on successive calls
+ // reset first or else test will fail on successive runs
BOOST_CHECK(modCtrl.SetStaticDelay(-1, error) == true);
BOOST_CHECK(modCtrl.SetStaticDelay(45000, error) == true);
uint32_t value;