]> granicus.if.org Git - icu/commitdiff
ICU-9077 Fix failing test rbbi/RBBITest/TestExtended
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 15 Feb 2013 08:14:10 +0000 (08:14 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Fri, 15 Feb 2013 08:14:10 +0000 (08:14 +0000)
X-SVN-Rev: 33234

icu4c/source/test/intltest/rbbitst.cpp
icu4c/source/test/testdata/rbbitst.txt

index 4281bfab01edf916337de60246ebeec47858f646..ef1fc8ce788e4aa2dac41b8bb7dad290fe8f654e 100644 (file)
@@ -991,10 +991,6 @@ void RBBITest::executeTest(TestParams *t) {
         int32_t actualBreak = t->bi->preceding(i);
         int32_t expectedBreak = BreakIterator::DONE;
 
-        // For supplementaries, back up to the start of the character.
-        // int32_t currentCharStart = i < t->dataToBreak.length()? t->dataToBreak.getChar32Start(i) : i;
-
-        // for (int32_t j=currentCharStart-1; j >= 0; j--) {
         for (int32_t j=i-1; j >= 0; j--) {
             if (t->expectedBreaks->elementAti(j) != 0) {
                 expectedBreak = j;
index 49f310c8f60388d5c31f0d6bbde9d93dff711f2f..4c721e11cbcc2bd11ec73c252b6780ba0b36f8ad 100644 (file)
@@ -819,7 +819,7 @@ Bangkok)•</data>
 
 <locale fi>
 <line>
-// TODO: problems with Finnish line break rules cause these two lines to fail.
+# TODO: problems with Finnish line break rules cause these two lines to fail.
 #<data>•abc •- •def    •abc •-def    •abc- •def   •abc-•def•</data>   # With ASCII hyphen
 #<data>•abc •‐ •def    •abc •‐def    •abc‐ •def   •abc‐•def•</data>   # With Unicode u2010 hyphen