From: Alexander Kornienko Date: Wed, 5 Jun 2013 15:08:20 +0000 (+0000) Subject: Added test with characters using four bytes in UTF-8 representation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dda770b4a3135ac372a84a2e53d8b58a0c62b9e1;p=clang Added test with characters using four bytes in UTF-8 representation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183315 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index a959bcbe55..eb9b8f36a0 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -4946,6 +4946,10 @@ TEST_F(FormatTest, SplitsUTF8BlockComments) { " * 九 十\n" " */", format("/* 一二三 四五六七 八 九 十 */", getLLVMStyleWithColumns(6))); + EXPECT_EQ("/* 𝓣𝓮𝓼𝓽 𝔣𝔬𝔲𝔯\n" + " * 𝕓𝕪𝕥𝕖\n" + " * 𝖀𝕿𝕱-𝟠 */", + format("/* 𝓣𝓮𝓼𝓽 𝔣𝔬𝔲𝔯 𝕓𝕪𝕥𝕖 𝖀𝕿𝕱-𝟠 */", getLLVMStyleWithColumns(12))); } } // end namespace tooling