summaryrefslogtreecommitdiff
path: root/i18npool/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-14 14:14:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-14 16:10:30 +0000
commitfad63878e529ad775f4484330235242a7a900987 (patch)
treea22094b5a18ca1bb35d9d94138388249120a91e9 /i18npool/qa
parent1a450f53dbd31a34718f658a81b0fabbbc329764 (diff)
add northern-thai example
Diffstat (limited to 'i18npool/qa')
-rw-r--r--i18npool/qa/cppunit/test_breakiterator.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index a68bc77231af..ba000afa6199 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -260,14 +260,24 @@ void TestBreakIterator::testThai()
aLocale.Language = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("th"));
aLocale.Country = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TH"));
+ i18n::Boundary aBounds;
{
const sal_Unicode THAI1[] = { 0x0E01, 0x0E38, 0x0E2B, 0x0E25, 0x0E32, 0x0E1A };
- ::rtl::OUString aTest1(THAI1, SAL_N_ELEMENTS(THAI1));
+ ::rtl::OUString aTest(THAI1, SAL_N_ELEMENTS(THAI1));
- i18n::Boundary aBounds = m_xBreak->getWordBoundary(aTest1, 0, aLocale,
+ aBounds = m_xBreak->getWordBoundary(aTest, 0, aLocale,
i18n::WordType::DICTIONARY_WORD, true);
CPPUNIT_ASSERT_MESSAGE("Should skip full word",
- aBounds.startPos == 0 && aBounds.endPos == aTest1.getLength());
+ aBounds.startPos == 0 && aBounds.endPos == aTest.getLength());
+ }
+
+ {
+ const sal_Unicode NORTHERN_THAI1[] = { 0x0E01, 0x0E38, 0x0E4A, 0x0E2B, 0x0E25, 0x0E32, 0x0E1A };
+ ::rtl::OUString aTest(NORTHERN_THAI1, SAL_N_ELEMENTS(NORTHERN_THAI1));
+ aBounds = m_xBreak->getWordBoundary(aTest, 0, aLocale,
+ i18n::WordType::DICTIONARY_WORD, true);
+ CPPUNIT_ASSERT_MESSAGE("Should skip full word",
+ aBounds.startPos == 0 && aBounds.endPos == aTest.getLength());
}
}