Skip to content

Commit

Permalink
Issue #7: Added tests for new NeatoController methods
Browse files Browse the repository at this point in the history
  • Loading branch information
branoholy committed Dec 28, 2016
1 parent 0da830a commit 18d5a2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/src/suites/neatocontrollersuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ BOOST_FIXTURE_TEST_CASE_TEMPLATE(NeatoControllerScanFromDevice, NeatoController,
BOOST_CHECK(!controller->getTestMode());
BOOST_CHECK(!controller->getLdsRotation());

controller->setTestMode(true);
controller->setLdsRotation(true);
controller->startScanner();

BOOST_REQUIRE(controller->getTestMode());
BOOST_REQUIRE(controller->getLdsRotation());
Expand All @@ -139,8 +138,7 @@ BOOST_FIXTURE_TEST_CASE_TEMPLATE(NeatoControllerScanFromDevice, NeatoController,
std::string time = controller->getTime();
BOOST_CHECK_EQUAL(time, NF::correctTime);

controller->setLdsRotation(false);
controller->setTestMode(false);
controller->stopScanner();

BOOST_CHECK(!controller->getTestMode());
BOOST_CHECK(!controller->getLdsRotation());
Expand Down

0 comments on commit 18d5a2f

Please sign in to comment.