mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
fix for string to string conversion
This commit is contained in:
@ -97,6 +97,11 @@ TEST_CASE("Convert types with str method"){
|
||||
REQUIRE(ToString(sls::IpAddr{}) == "0.0.0.0");
|
||||
}
|
||||
|
||||
TEST_CASE("String to string", "[support]"){
|
||||
std::string s = "hej";
|
||||
REQUIRE(ToString(s) == "hej");
|
||||
}
|
||||
|
||||
TEST_CASE("vector of strings"){
|
||||
std::vector<std::string> vec{"5", "s"};
|
||||
REQUIRE(ToString(vec) == "[5, s]");
|
||||
@ -104,4 +109,7 @@ TEST_CASE("vector of strings"){
|
||||
std::vector<std::string> vec2{"some", "strange", "words", "75"};
|
||||
REQUIRE(ToString(vec2) == "[some, strange, words, 75]");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user