harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-217) [classlib][text] java.text.BreakIterator.following() incorrectly calculates the following boundary
Date Wed, 14 Mar 2007 06:32:09 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikhail Loenko updated HARMONY-217:
-----------------------------------

    Summary: [classlib][text] java.text.BreakIterator.following() incorrectly calculates the
following boundary  (was: java.text.BreakIterator.following() incorrectly calculates the following
boundary)

> [classlib][text] java.text.BreakIterator.following() incorrectly calculates the following
boundary
> --------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-217
>                 URL: https://issues.apache.org/jira/browse/HARMONY-217
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: J9 + Hamony
>            Reporter: Anton Avtamonov
>
> Use the following test case (which pass on RI) to understand the issue:
> import java.text.BreakIterator;
> import junit.framework.TestCase;
> public class BreakIteratorTest extends TestCase {
>     private BreakIterator bi;
>     protected void setUp() throws Exception {
>         bi = BreakIterator.getWordInstance();
>     }
>     protected void tearDown() throws Exception {
>         bi = null;
>     }
>     public void testFollowing() throws Exception {
>         bi.setText("000   111");
>         checkWordBounds(2, 0, 3);
>         checkWordBounds(4, 3, 6);
>         checkWordBounds(7, 6, 9);
>     }
>     private void checkWordBounds(final int offset,
>                                  final int expectedBeginOffset,
>                                  final int expectedEndOffset) {
>         assertEquals(expectedBeginOffset, bi.preceding(offset));
>         assertEquals(expectedEndOffset, bi.following(offset));
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message