Cleanup of the CmdProxy and migrated some commands (#52)

* migrated rx_fifodepth

* Moved and cleand CmdProxy

* rx_slient

* new commands

* examples

* fixed result string print
This commit is contained in:
Erik Fröjdh
2019-08-23 14:32:44 +02:00
committed by Dhanya Thattil
parent 975a5a4cab
commit 5c06549982
15 changed files with 385 additions and 319 deletions

View File

@@ -155,4 +155,20 @@ TEST_CASE("Sorting a Result"){
REQUIRE(res[1] == 3);
REQUIRE(res[2] == 4);
REQUIRE(res[3] == 5);
}
TEST_CASE("Printing Result<std::string>"){
Result<std::string> res{"ein", "zwei", "drei"};
std::ostringstream os;
os << res;
REQUIRE(os.str() == "[ein, zwei, drei]");
}
TEST_CASE("Printing Result<int>"){
Result<int> res{1, 2, 3};
std::ostringstream os;
os << res;
REQUIRE(os.str() == "[1, 2, 3]");
}