mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 19:48:53 +01:00
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:
committed by
Dhanya Thattil
parent
975a5a4cab
commit
5c06549982
@@ -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]");
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user