aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-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()