]> granicus.if.org Git - clang/commitdiff
Added test with characters using four bytes in UTF-8 representation.
authorAlexander Kornienko <alexfh@google.com>
Wed, 5 Jun 2013 15:08:20 +0000 (15:08 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 5 Jun 2013 15:08:20 +0000 (15:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183315 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index a959bcbe55c7e5066b38175caf250e02d84ec2cc..eb9b8f36a0671778af3c58ff7144859d1b5d848d 100644 (file)
@@ -4946,6 +4946,10 @@ TEST_F(FormatTest, SplitsUTF8BlockComments) {
             " * 九 十\n"
             " */",
             format("/* 一二三 四五六七 八  九 十 */", getLLVMStyleWithColumns(6)));
+  EXPECT_EQ("/* 𝓣𝓮𝓼𝓽 𝔣𝔬𝔲𝔯\n"
+            " * 𝕓𝕪𝕥𝕖\n"
+            " * 𝖀𝕿𝕱-𝟠 */",
+            format("/* 𝓣𝓮𝓼𝓽 𝔣𝔬𝔲𝔯 𝕓𝕪𝕥𝕖 𝖀𝕿𝕱-𝟠 */", getLLVMStyleWithColumns(12)));
 }
 
 } // end namespace tooling