summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-11-26 13:31:46 +0000
committerAlexander Kornienko <alexfh@google.com>2013-11-26 13:31:46 +0000
commitfd1d7002e264ed976475780a351f812676b01958 (patch)
tree9cee46a7b03d79312764ab927565f5e1f6f7e61a /clang/unittests/Format/FormatTest.cpp
parent6ef70f957ef8409bf4800bfe0b6bcf6f0efe3496 (diff)
downloadbcm5719-llvm-fd1d7002e264ed976475780a351f812676b01958.tar.gz
bcm5719-llvm-fd1d7002e264ed976475780a351f812676b01958.zip
Changed non-printable characters in the test to the escaped form. Apparently, not all tools display non-printable characters ;)
llvm-svn: 195761
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index a7dce3b86f5..350f8f2783a 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -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, HandlesDoubleWidthCharsInMultiLineStrings) {
}
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"
OpenPOWER on IntegriCloud