mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-11 11:53:52 +01:00
clang format
This commit is contained in:
1 parent
3726ae3fd1
commit
b39c64032d
66 files changed
+642
-624
No files matched your search
@@ -78,29 +78,28 @@ TEST_CASE("Check is string is integer") {
|
||||
REQUIRE_FALSE(sls::is_int(""));
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("Replace substring in string"){
|
||||
TEST_CASE("Replace substring in string") {
|
||||
std::string s = "this string should be replaced";
|
||||
auto r = sls::replace_first(&s, "string ", "");
|
||||
REQUIRE(r == true);
|
||||
REQUIRE(s == "this should be replaced");
|
||||
}
|
||||
|
||||
TEST_CASE("Replace --help in command"){
|
||||
TEST_CASE("Replace --help in command") {
|
||||
std::string s = "sls_detector_get --help exptime";
|
||||
auto r = sls::replace_first(&s, " --help", "");
|
||||
REQUIRE(r == true);
|
||||
REQUIRE(s == "sls_detector_get exptime");
|
||||
}
|
||||
|
||||
TEST_CASE("Replace -h in command"){
|
||||
TEST_CASE("Replace -h in command") {
|
||||
std::string s = "sls_detector_get -h exptime";
|
||||
auto r = sls::replace_first(&s, " -h", "");
|
||||
REQUIRE(r == true);
|
||||
REQUIRE(s == "sls_detector_get exptime");
|
||||
}
|
||||
|
||||
TEST_CASE("replace --help"){
|
||||
TEST_CASE("replace --help") {
|
||||
std::string s = "list --help";
|
||||
auto r = sls::replace_first(&s, " --help", "");
|
||||
REQUIRE(r == true);
|
||||
|
||||
Reference in new issue
Block a user