aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-17 02:59:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-17 02:59:44 +0300
commita44af421ee6f3d5025859c135ff6a0a1df50c1ee (patch)
tree2c2e4ad9f07915e25be2dd526fd22100ec3fa3c8
parentprocess_tests: remove temp files (diff)
downloadwinapi-common-a44af421ee6f3d5025859c135ff6a0a1df50c1ee.tar.gz
winapi-common-a44af421ee6f3d5025859c135ff6a0a1df50c1ee.zip
clang: don't break long string literals
-rw-r--r--.clang-format1
-rw-r--r--test/unit_tests/error.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/.clang-format b/.clang-format
index 6a78f23..4e77355 100644
--- a/.clang-format
+++ b/.clang-format
@@ -4,6 +4,7 @@ BasedOnStyle: Chromium
AccessModifierOffset: -4
BinPackArguments: false
+BreakStringLiterals: false
ColumnLimit: 100
IncludeBlocks: Regroup
IndentWidth: 4
diff --git a/test/unit_tests/error.cpp b/test/unit_tests/error.cpp
index f70d95d..86d2eb6 100644
--- a/test/unit_tests/error.cpp
+++ b/test/unit_tests/error.cpp
@@ -15,9 +15,9 @@ BOOST_AUTO_TEST_SUITE(error_tests)
BOOST_AUTO_TEST_CASE(file_not_found) {
const std::string actual{winapi::error::windows(ERROR_FILE_NOT_FOUND, "CreateFileW").what()};
- BOOST_TEST(actual ==
- "Function CreateFileW failed with error code 2: The system cannot find the file "
- "specified.");
+ const auto expected =
+ "Function CreateFileW failed with error code 2: The system cannot find the file specified.";
+ BOOST_TEST(actual == expected);
}
BOOST_AUTO_TEST_SUITE_END()