]> granicus.if.org Git - clang/commitdiff
Changed non-printable characters in the test to the escaped form. Apparently, not...
authorAlexander Kornienko <alexfh@google.com>
Tue, 26 Nov 2013 13:31:46 +0000 (13:31 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 26 Nov 2013 13:31:46 +0000 (13:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195761 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index a7dce3b86f5765872caefab9f871c5e7d23464fc..350f8f2783abdf4d105757c1143aaa2a8743bd7e 100644 (file)
@@ -6996,11 +6996,11 @@ TEST_F(FormatTest, SplitsUTF8Strings) {
   // (zero-width, single width with a substitution glyph, expanded to their code
   // (e.g. "<8d>"), so there's no single correct way to handle them.
   EXPECT_EQ("\"aaaaÄ\"\n"
-            "\"\8d\";",
-            format("\"aaaaÄ\8d\";", getLLVMStyleWithColumns(10)));
+            "\"\xc2\x8d\";",
+            format("\"aaaaÄ\xc2\x8d\";", getLLVMStyleWithColumns(10)));
   EXPECT_EQ("\"aaaaaaaÄ\"\n"
-            "\"\8d\";",
-            format("\"aaaaaaaÄ\8d\";", getLLVMStyleWithColumns(10)));
+            "\"\xc2\x8d\";",
+            format("\"aaaaaaaÄ\xc2\x8d\";", getLLVMStyleWithColumns(10)));
   EXPECT_EQ(
       "\"Однажды, в \"\n"
       "\"студёную \"\n"
@@ -7034,8 +7034,8 @@ TEST_F(FormatTest, HandlesDoubleWidthCharsInMultiLineStrings) {
 }
 
 TEST_F(FormatTest, SplitsUTF8LineComments) {
-  EXPECT_EQ("// aaaaÄ\8d",
-            format("// aaaaÄ\8d", getLLVMStyleWithColumns(10)));
+  EXPECT_EQ("// aaaaÄ\xc2\x8d",
+            format("// aaaaÄ\xc2\x8d", getLLVMStyleWithColumns(10)));
   EXPECT_EQ("// Я из лесу\n"
             "// вышел; был\n"
             "// сильный\n"