r183315 - Added test with characters using four bytes in UTF-8 representation.
Alexander Kornienko
alexfh at google.com
Wed Jun 5 08:08:20 PDT 2013
Author: alexfh
Date: Wed Jun 5 10:08:20 2013
New Revision: 183315
URL: http://llvm.org/viewvc/llvm-project?rev=183315&view=rev
Log:
Added test with characters using four bytes in UTF-8 representation.
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=183315&r1=183314&r2=183315&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Wed Jun 5 10:08:20 2013
@@ -4946,6 +4946,10 @@ TEST_F(FormatTest, SplitsUTF8BlockCommen
" * ä¹ å\n"
" */",
format("/* ä¸äºä¸ åäºå
ä¸ å
« ä¹ å */", getLLVMStyleWithColumns(6)));
+ EXPECT_EQ("/* ð£ð®ð¼ð½ ð£ð¬ð²ð¯\n"
+ " * ððªð¥ð\n"
+ " * ðð¿ð±-ð */",
+ format("/* ð£ð®ð¼ð½ ð£ð¬ð²ð¯ ððªð¥ð ðð¿ð±-ð */", getLLVMStyleWithColumns(12)));
}
} // end namespace tooling
More information about the cfe-commits
mailing list