[Libreoffice-commits] core.git: i18npool/qa
David Ostrovsky
david at ostrovsky.org
Thu May 28 04:52:50 PDT 2015
i18npool/qa/cppunit/test_breakiterator.cxx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
New commits:
commit 452a06b70578eb83067c6c744cd97eebafc4003c
Author: David Ostrovsky <david at ostrovsky.org>
Date: Thu May 28 13:49:27 2015 +0200
Activate unit test for Lao breakiterator support
In f24fa8efad247bdc296e4724b914f73f01ef2d0b added unit test wasn't
activated. Activating it now reveals that the test is failing. Add
TODOs for the failing asserts.
Change-Id: I6c9f36be3aa84a5d5092d2a3f576af39a15b935e
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index be4dd6d..a2820d2 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -52,6 +52,7 @@ public:
CPPUNIT_TEST(testWeak);
CPPUNIT_TEST(testAsian);
CPPUNIT_TEST(testThai);
+ CPPUNIT_TEST(testLao);
#ifdef TODO
CPPUNIT_TEST(testNorthernThai);
#endif
@@ -808,13 +809,17 @@ void TestBreakIterator::testLao()
i18n::Boundary aBounds = m_xBreak->getWordBoundary(aTest, 0, aLocale,
i18n::WordType::DICTIONARY_WORD, true);
- CPPUNIT_ASSERT(aBounds.startPos == 0 && aBounds.endPos == 5);
+ CPPUNIT_ASSERT_EQUAL(0, aBounds.startPos);
+ //TODO: Expected: 5 | Actual : 12
+ //CPPUNIT_ASSERT_EQUAL(5, aBounds.endPos);
aBounds = m_xBreak->getWordBoundary(aTest, aBounds.endPos, aLocale,
i18n::WordType::DICTIONARY_WORD, true);
- CPPUNIT_ASSERT(aBounds.startPos == 5 && aBounds.endPos == 9);
-
+ //TODO: Expected: 5 | Actual : 12
+ //CPPUNIT_ASSERT_EQUAL(5, aBounds.startPos);
+ //TODO: Expected: 9 | Actual : 12
+ //CPPUNIT_ASSERT_EQUAL(9, aBounds.endPos);
}
//A test to ensure that our thai word boundary detection is useful
More information about the Libreoffice-commits
mailing list