aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/error.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit_tests/error.cpp6
1 files changed, 3 insertions, 3 deletions
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()