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