r195761 - Changed non-printable characters in the test to the escaped form. Apparently, not all tools display non-printable characters ; )
Alexander Kornienko
alexfh at google.com
Tue Nov 26 05:31:46 PST 2013
Author: alexfh
Date: Tue Nov 26 07:31:46 2013
New Revision: 195761
URL: http://llvm.org/viewvc/llvm-project?rev=195761&view=rev
Log:
Changed non-printable characters in the test to the escaped form. Apparently, not all tools display non-printable characters ;)
Modified:
cfe/trunk/unittests/Format/FormatTest.cpp
Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=195761&r1=195760&r2=195761&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Tue Nov 26 07:31:46 2013
@@ -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"
- "\"Â\";",
- format("\"aaaaÃÂ\";", getLLVMStyleWithColumns(10)));
+ "\"\xc2\x8d\";",
+ format("\"aaaaÃ\xc2\x8d\";", getLLVMStyleWithColumns(10)));
EXPECT_EQ("\"aaaaaaaÃ\"\n"
- "\"Â\";",
- format("\"aaaaaaaÃÂ\";", getLLVMStyleWithColumns(10)));
+ "\"\xc2\x8d\";",
+ format("\"aaaaaaaÃ\xc2\x8d\";", getLLVMStyleWithColumns(10)));
EXPECT_EQ(
"\"ÐднаждÑ, в \"\n"
"\"ÑÑÑдÑнÑÑ \"\n"
@@ -7034,8 +7034,8 @@ TEST_F(FormatTest, HandlesDoubleWidthCha
}
TEST_F(FormatTest, SplitsUTF8LineComments) {
- EXPECT_EQ("// aaaaÃÂ",
- format("// aaaaÃÂ", getLLVMStyleWithColumns(10)));
+ EXPECT_EQ("// aaaaÃ\xc2\x8d",
+ format("// aaaaÃ\xc2\x8d", getLLVMStyleWithColumns(10)));
EXPECT_EQ("// Я из леÑÑ\n"
"// вÑÑел; бÑл\n"
"// ÑилÑнÑй\n"
More information about the cfe-commits
mailing list