diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-07 12:39:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-07 12:39:58 +0100 |
commit | 346cf4ee5d2f82b59900de1f71160c0d90ffab41 (patch) | |
tree | 75b4e2e6a714c32d596f9e5394f1660e2bd5b911 /i18npool/qa | |
parent | 9b69085c5da49aa64c531b27d078a3f4a353103c (diff) |
Related: #i50172# add regression test for Tamil cursoring
Change-Id: I8f6c3814aa3630f5f640f611fb51ce72641715c6
Diffstat (limited to 'i18npool/qa')
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index c00b086b8bcf..aa4e9438c1b0 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -573,6 +573,7 @@ void TestBreakIterator::testWordBoundaries() //See https://bugs.freedesktop.org/show_bug.cgi?id=40292 //See https://issues.apache.org/ooo/show_bug.cgi?id=80412 //See https://issues.apache.org/ooo/show_bug.cgi?id=111152 +//See https://issues.apache.org/ooo/show_bug.cgi?id=50172 void TestBreakIterator::testGraphemeIteration() { lang::Locale aLocale; @@ -640,6 +641,21 @@ void TestBreakIterator::testGraphemeIteration() } { + const sal_Unicode KA_VOWELSIGNU[] = { 0x0B95, 0x0BC1 }; + rtl::OUString aTest(KA_VOWELSIGNU, SAL_N_ELEMENTS(KA_VOWELSIGNU)); + + sal_Int32 nDone=0; + sal_Int32 nPos = 0; + + nPos = m_xBreak->nextCharacters(aTest, 0, aLocale, + i18n::CharacterIteratorMode::SKIPCELL, 1, nDone); + CPPUNIT_ASSERT_MESSAGE("Should skip full grapheme", nPos == SAL_N_ELEMENTS(KA_VOWELSIGNU)); + nPos = m_xBreak->previousCharacters(aTest, SAL_N_ELEMENTS(KA_VOWELSIGNU), aLocale, + i18n::CharacterIteratorMode::SKIPCELL, 1, nDone); + CPPUNIT_ASSERT_MESSAGE("Should skip full grapheme", nPos == 0); + } + + { const sal_Unicode CA_VOWELSIGNI_TA_VIRAMA_TA_VOWELSIGNI_RA_VOWELSIGNAI[] = { 0x0B9A, 0x0BBF, 0x0BA4, 0x0BCD, 0x0BA4, 0x0BBF, 0x0BB0, 0x0BC8 }; rtl::OUString aTest(CA_VOWELSIGNI_TA_VIRAMA_TA_VOWELSIGNI_RA_VOWELSIGNAI, |