summaryrefslogtreecommitdiff
path: root/i18npool/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-14 16:07:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-14 16:10:30 +0000
commit475d0c59c66fb7752d230f76130b17145aad0c12 (patch)
tree290b1c8114076b5c70aa758c5c4aee09e9b62609 /i18npool/qa
parentfad63878e529ad775f4484330235242a7a900987 (diff)
use icu's breakiterator for Thai, not our customized generic rules
Diffstat (limited to 'i18npool/qa')
-rw-r--r--i18npool/qa/cppunit/test_breakiterator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index ba000afa6199..820e57b4549c 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -70,7 +70,7 @@ public:
CPPUNIT_TEST(testGraphemeIteration);
CPPUNIT_TEST(testWeak);
CPPUNIT_TEST(testAsian);
-// CPPUNIT_TEST(testThai);
+ CPPUNIT_TEST(testThai);
CPPUNIT_TEST_SUITE_END();
private:
@@ -264,13 +264,13 @@ void TestBreakIterator::testThai()
{
const sal_Unicode THAI1[] = { 0x0E01, 0x0E38, 0x0E2B, 0x0E25, 0x0E32, 0x0E1A };
::rtl::OUString aTest(THAI1, SAL_N_ELEMENTS(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());
}
+#ifdef TODO
{
const sal_Unicode NORTHERN_THAI1[] = { 0x0E01, 0x0E38, 0x0E4A, 0x0E2B, 0x0E25, 0x0E32, 0x0E1A };
::rtl::OUString aTest(NORTHERN_THAI1, SAL_N_ELEMENTS(NORTHERN_THAI1));
@@ -279,6 +279,7 @@ void TestBreakIterator::testThai()
CPPUNIT_ASSERT_MESSAGE("Should skip full word",
aBounds.startPos == 0 && aBounds.endPos == aTest.getLength());
}
+#endif
}
TestBreakIterator::TestBreakIterator()