ToString of runStatus

This commit is contained in:
Erik Frojdh
2019-10-01 12:34:03 +02:00
parent ffa9bbe8d2
commit aaade64e0b
2 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include "TimeHelper.h"
#include "ToString.h"
#include "network_utils.h"
#include "sls_detector_defs.h"
#include "catch.hpp"
#include <array>
#include <vector>
@ -111,5 +112,15 @@ TEST_CASE("vector of strings"){
}
TEST_CASE("run status"){
using defs = slsDetectorDefs;
REQUIRE(ToString(defs::runStatus::ERROR) == "error");
REQUIRE(ToString(defs::runStatus::WAITING) == "waiting");
REQUIRE(ToString(defs::runStatus::TRANSMITTING) == "data"); //??
REQUIRE(ToString(defs::runStatus::RUN_FINISHED) == "finished");
REQUIRE(ToString(defs::runStatus::STOPPED) == "stopped");
REQUIRE(ToString(defs::runStatus::IDLE) == "idle");
}