summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2015-05-28 13:49:27 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2015-05-28 13:52:46 +0200
commit452a06b70578eb83067c6c744cd97eebafc4003c (patch)
tree6d20491650b6711bf616dcba5ec804cbd4965482 /i18npool
parentcb27eb7811d7ebf92ac9b28509387cc4bffca7f1 (diff)
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
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/qa/cppunit/test_breakiterator.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index be4dd6d13935..a2820d2057da 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