[clang-tools-extra] r317642 - Fix compile issue on MSVC.
Douglas Yung via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 7 16:29:43 PST 2017
Author: dyung
Date: Tue Nov 7 16:29:42 2017
New Revision: 317642
URL: http://llvm.org/viewvc/llvm-project?rev=317642&view=rev
Log:
Fix compile issue on MSVC.
Modified:
clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp?rev=317642&r1=317641&r2=317642&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp Tue Nov 7 16:29:42 2017
@@ -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}}));
More information about the cfe-commits
mailing list