mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-07-09 17:30:49 +02:00
Better error message on socket (#1477)
Build and Deploy on local RHEL9 / build (push) Successful in 2m1s
Build on RHEL9 docker image / build (push) Successful in 4m31s
Build and Deploy on local RHEL8 / build (push) Successful in 5m6s
Build on RHEL8 docker image / build (push) Successful in 5m34s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m38s
Run Simulator Tests on local RHEL8 / build (push) Successful in 22m6s
Build and Deploy on local RHEL9 / build (push) Successful in 2m1s
Build on RHEL9 docker image / build (push) Successful in 4m31s
Build and Deploy on local RHEL8 / build (push) Successful in 5m6s
Build on RHEL8 docker image / build (push) Successful in 5m34s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m38s
Run Simulator Tests on local RHEL8 / build (push) Successful in 22m6s
* checking errno * improved socket error message * improved message * decode error code * format * clearer msg * report write errors, handle SIGPIPE * retry and cleaned up timeout * removed read/write in DataSocket
This commit is contained in:
@@ -123,6 +123,33 @@ TEST_CASE("port missing") {
|
||||
REQUIRE(res.second == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("to_lower converts uppercase to lowercase") {
|
||||
REQUIRE(to_lower("HELLO") == "hello");
|
||||
REQUIRE(to_lower("Hello World") == "hello world");
|
||||
}
|
||||
|
||||
TEST_CASE("to_lower leaves an already lowercase string unchanged") {
|
||||
REQUIRE(to_lower("already lower") == "already lower");
|
||||
}
|
||||
|
||||
TEST_CASE("to_lower only affects alphabetic characters") {
|
||||
REQUIRE(to_lower("ABC123!?_-XYZ") == "abc123!?_-xyz");
|
||||
}
|
||||
|
||||
TEST_CASE("to_lower on an empty string returns an empty string") {
|
||||
REQUIRE(to_lower("").empty());
|
||||
}
|
||||
|
||||
TEST_CASE("to_lower does not modify the original string") {
|
||||
std::string original = "MixedCase";
|
||||
auto result = to_lower(original);
|
||||
REQUIRE(result == "mixedcase");
|
||||
// the source string must be untouched
|
||||
REQUIRE(original == "MixedCase");
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TEST_CASE("concat things not being strings")
|
||||
|
||||
} // namespace sls
|
||||
|
||||
Reference in New Issue
Block a user