[Libreoffice-commits] .: i18npool/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Jul 13 05:01:57 PDT 2012
i18npool/qa/cppunit/test_breakiterator.cxx | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
New commits:
commit 2cf6778842d259d4e6e1a1f0e4c6c2ceab874eee
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 13 13:00:29 2012 +0100
Related: fdo#49629 add test case for #i21907#
Change-Id: Ie1dd9091e4d8ee09c9a75eecf28fd6cd06ea1839
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index a65d0b6..491681c 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -166,6 +166,23 @@ void TestBreakIterator::testWordBoundaries()
aBounds = m_xBreak->getWordBoundary(aTest, 16, aLocale, i18n::WordType::DICTIONARY_WORD, true);
CPPUNIT_ASSERT(aBounds.startPos == 16 && aBounds.endPos == 19);
}
+
+ //See https://issues.apache.org/ooo/show_bug.cgi?id=21907
+ {
+ ::rtl::OUString aTest("b a?");
+
+ CPPUNIT_ASSERT(m_xBreak->isBeginWord(aTest, 1, aLocale, i18n::WordType::ANY_WORD));
+ CPPUNIT_ASSERT(m_xBreak->isBeginWord(aTest, 2, aLocale, i18n::WordType::ANY_WORD));
+ CPPUNIT_ASSERT(m_xBreak->isBeginWord(aTest, 3, aLocale, i18n::WordType::ANY_WORD));
+
+ CPPUNIT_ASSERT(m_xBreak->isBeginWord(aTest, 3, aLocale, i18n::WordType::ANYWORD_IGNOREWHITESPACES));
+
+ CPPUNIT_ASSERT(m_xBreak->isEndWord(aTest, 1, aLocale, i18n::WordType::ANY_WORD));
+ CPPUNIT_ASSERT(m_xBreak->isEndWord(aTest, 2, aLocale, i18n::WordType::ANY_WORD));
+ CPPUNIT_ASSERT(m_xBreak->isEndWord(aTest, 3, aLocale, i18n::WordType::ANY_WORD));
+
+ CPPUNIT_ASSERT(m_xBreak->isEndWord(aTest, 3, aLocale, i18n::WordType::ANYWORD_IGNOREWHITESPACES));
+ }
}
//See http://qa.openoffice.org/issues/show_bug.cgi?id=111152
More information about the Libreoffice-commits
mailing list