diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-07-24 16:29:40 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-07-24 20:20:21 +0200 |
commit | 88790291ddc00bfa18d3f7bcc0825b1ce14cb490 (patch) | |
tree | 51a48d35e67a32b88f965586eb3e85d6a6bc66e9 /i18npool/qa | |
parent | 9eb88d78c8bc9e942814eb6fc4fe06a4e5736256 (diff) |
tdf#97152: Fix upper case mapping of lunate sigma (U+03F2)
It was mapped to uppercase sigma (U+03A3) while it should be mapped to
uppercase lunate sigma (U+03F9). Fix by letting this slot fallback to
ICU case folding.
Change-Id: I14ffa0151c740779b67af14be8c7af8c51c3a1e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154845
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'i18npool/qa')
-rw-r--r-- | i18npool/qa/cppunit/test_characterclassification.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/i18npool/qa/cppunit/test_characterclassification.cxx b/i18npool/qa/cppunit/test_characterclassification.cxx index 5b01f73bcf35..206bcec83882 100644 --- a/i18npool/qa/cppunit/test_characterclassification.cxx +++ b/i18npool/qa/cppunit/test_characterclassification.cxx @@ -190,8 +190,8 @@ CPPUNIT_TEST_FIXTURE(TestCharacterClassification, testTdf97152) OUString sTest(u"ͲͰϽϾϿͿϏϹ"); OUString sLowerCase = m_xCC->toLower(sTest, 0, sTest.getLength(), {}); CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be lower", OUString(u"ͳͱͻͼͽϳϗϲ"), sLowerCase); - //OUString sUpperCase = m_xCC->toUpper(sLowerCase, 0, sLowerCase.getLength(), {}); - //CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be upper", sTest, sUpperCase); + OUString sUpperCase = m_xCC->toUpper(sLowerCase, 0, sLowerCase.getLength(), {}); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be upper", sTest, sUpperCase); } { @@ -199,10 +199,10 @@ CPPUNIT_TEST_FIXTURE(TestCharacterClassification, testTdf97152) OUString sTest(u"ͳͱͻͼͽϳϗϲ"); OUString sTitleCase = m_xCC->toTitle(sTest, 0, sTest.getLength(), {}); CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be title", OUString(u"Ͳͱͻͼͽϳϗϲ"), sTitleCase); - //OUString sUpperCase = m_xCC->toUpper(sTest, 0, sTest.getLength(), {}); - //CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be upper", OUString(u"ͲͰϽϾϿͿϏϹ"), sUpperCase); - //OUString sLowerCase = m_xCC->toLower(sUpperCase, 0, sUpperCase.getLength(), {}); - //CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be lower", sTest, sLowerCase); + OUString sUpperCase = m_xCC->toUpper(sTest, 0, sTest.getLength(), {}); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be upper", OUString(u"ͲͰϽϾϿͿϏϹ"), sUpperCase); + OUString sLowerCase = m_xCC->toLower(sUpperCase, 0, sUpperCase.getLength(), {}); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be lower", sTest, sLowerCase); } { @@ -210,8 +210,8 @@ CPPUNIT_TEST_FIXTURE(TestCharacterClassification, testTdf97152) OUString sTest(u"Ͳͱͻͼͽϳϗϲ"); OUString sTitleCase = m_xCC->toTitle(sTest, 0, sTest.getLength(), {}); CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be title", OUString(u"Ͳͱͻͼͽϳϗϲ"), sTitleCase); - //OUString sUpperCase = m_xCC->toUpper(sTest, 0, sTest.getLength(), {}); - //CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be upper", OUString(u"ͲͰϽϾϿͿϏϹ"), sUpperCase); + OUString sUpperCase = m_xCC->toUpper(sTest, 0, sTest.getLength(), {}); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be upper", OUString(u"ͲͰϽϾϿͿϏϹ"), sUpperCase); OUString sLowerCase = m_xCC->toLower(sTest, 0, sTest.getLength(), {}); CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be lower", OUString(u"ͳͱͻͼͽϳϗϲ"), sLowerCase); } |