Skip to content

Commit

Permalink
Fix build on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverlord committed Sep 8, 2020
1 parent 4f728d3 commit 879a76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcaf_core/test/message.cpp
Expand Up @@ -100,8 +100,8 @@ CAF_TEST(to_string converts messages to strings) {
svec{"five", "six", "seven"}),
R"__(message(std::vector<std::string>(["one", "two"]), "three", "four", )__"
R"__(std::vector<std::string>(["five", "six", "seven"])))__");
CAF_CHECK_EQUAL(msg_as_string(R"(this is a "test")"),
R"__(message("this is a \"test\""))__");
auto teststr = R"__(message("this is a \"test\""))__"; // fails inline on MSVC
CAF_CHECK_EQUAL(msg_as_string(R"__(this is a "test")__"), teststr);
CAF_CHECK_EQUAL(msg_as_string(make_tuple(1, 2, 3), 4, 5),
"message(std::tuple<int32_t, int32_t, int32_t>([1, 2, 3]), "
"int32_t(4), int32_t(5))");
Expand Down

0 comments on commit 879a76a

Please sign in to comment.