diff options
author | Douglas Yung <douglas.yung@sony.com> | 2017-11-08 00:29:42 +0000 |
---|---|---|
committer | Douglas Yung <douglas.yung@sony.com> | 2017-11-08 00:29:42 +0000 |
commit | 8c0820e27af52d447b47f01e23b8f3355a605364 (patch) | |
tree | fe8b6a7ba1f5249e96f810b1f735e2e52a435b43 | |
parent | 31e48c94018c719cf12878bc0783e97c9f3fbdb2 (diff) |
Fix compile issue on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@317642 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/clangd/JSONExprTests.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unittests/clangd/JSONExprTests.cpp b/unittests/clangd/JSONExprTests.cpp index a05b7f84..a95b4b0c 100644 --- a/unittests/clangd/JSONExprTests.cpp +++ b/unittests/clangd/JSONExprTests.cpp @@ -67,9 +67,11 @@ TEST(JSONExprTests, Escaping) { '\x7f', // Delete is not escaped. '\xce', '\x94', // Non-ASCII UTF-8 is not escaped. }; - EXPECT_EQ(R"("\u0000\u0008\u000c\r\n\tS\"\\)" - "\x7f\xCE\x94\"", - s(test)); + + std::string teststring = R"("\u0000\u0008\u000c\r\n\tS\"\\)" + "\x7f\xCE\x94\""; + + EXPECT_EQ(teststring, s(test)); EXPECT_EQ(R"({"object keys are\nescaped":true})", s(obj{{"object keys are\nescaped", true}})); |