mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
added string concat to ToString
This commit is contained in:
@ -95,4 +95,13 @@ TEST_CASE("Convert types with str method"){
|
||||
sls::IpAddr addr;
|
||||
REQUIRE(ToString(addr) == "0.0.0.0");
|
||||
REQUIRE(ToString(sls::IpAddr{}) == "0.0.0.0");
|
||||
}
|
||||
|
||||
TEST_CASE("vector of strings"){
|
||||
std::vector<std::string> vec{"5", "s"};
|
||||
REQUIRE(ToString(vec) == "5 s");
|
||||
|
||||
std::vector<std::string> vec2{"some", "strange", "words", "75"};
|
||||
REQUIRE(ToString(vec2) == "some strange words 75");
|
||||
|
||||
}
|
Reference in New Issue
Block a user