diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-12 17:07:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-12 17:08:24 +0100 |
commit | 6e225b41f1ab3e6cac395b0c0c6db73414658625 (patch) | |
tree | 8c9c4ec2ea754c8e985e400f4bdc9e79eb16e9ff /i18npool/qa/cppunit | |
parent | 3ddae832bbb71306a574c4e1087de0a0da318966 (diff) |
Resolves: fdo#55707 Word count incorrect if language is set to Finnish
Change-Id: I283dddaa4bd8baf05b90ce5f81d43b785021a3c4
Diffstat (limited to 'i18npool/qa/cppunit')
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index 36e3d3b808fc..ccea424cbb88 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -405,7 +405,7 @@ void TestBreakIterator::testWordBoundaries() } //See https://issues.apache.org/ooo/show_bug.cgi?id=85411 - for (int j = 0; j < 2; ++j) + for (int j = 0; j < 3; ++j) { switch (j) { @@ -417,6 +417,10 @@ void TestBreakIterator::testWordBoundaries() aLocale.Language = "ca"; aLocale.Country = "ES"; break; + case 2: + aLocale.Language = "fi"; + aLocale.Country = "FI"; + break; default: CPPUNIT_ASSERT(false); break; @@ -484,15 +488,16 @@ void TestBreakIterator::testWordBoundaries() } //See https://issues.apache.org/ooo/show_bug.cgi?id=58513 + //See https://bugs.freedesktop.org/show_bug.cgi?id=55707 { aLocale.Language = "fi"; aLocale.Country = "FI"; - OUString aTest("Kuorma-auto kaakkois- ja Keski-Suomi"); + OUString aTest("Kuorma-auto kaakkois- ja Keski-Suomi USA:n 90:n %:n"); { sal_Int32 nPos = 0; - sal_Int32 aExpected[] = {12, 22, 25, 36}; + sal_Int32 aExpected[] = {11, 21, 24, 36, 42, 47, 51}; size_t i = 0; do { @@ -507,7 +512,8 @@ void TestBreakIterator::testWordBoundaries() { sal_Int32 nPos = 0; - sal_Int32 aExpected[] = {0, 11, 12, 21, 22, 24, 25, 36}; + sal_Int32 aExpected[] = {0, 11, 12, 20, 22, 24, 25, 36, 37, + 40, 41, 42, 43, 45, 46, 47, 50, 51}; size_t i = 0; do { |