// (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"
}
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"