You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oliver Deakin (JIRA)" <ji...@apache.org> on 2010/09/29 18:04:32 UTC

[jira] Commented: (HARMONY-6524) [classlib][text] RuleBasedCollatorTest tests fail

    [ https://issues.apache.org/jira/browse/HARMONY-6524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916179#action_12916179 ] 

Oliver Deakin commented on HARMONY-6524:
----------------------------------------

I've just been taking a look at these two failures. It seems to me that they're non-bug differences - in fact from the spec of CollationElementIterator I would expect the behaviour of ICU to be correct. The test case we have (iterating through "cha" in Spanish) is the example given in the spec, and from that I would expect the offset sequence to be { 0, 2, 3 } not { 0, 1, 2, 3 }. The test used to look for { 0, 2, 3 } until revision r612718 ("remove locate data, delegate related classes to ICU") where it was changed to the current version. I think this test should be changed back to expect { 0, 2, 3 } and removed from the exclude list.
Any comments? If not, I'll commit the change soon.

> [classlib][text] RuleBasedCollatorTest tests fail
> -------------------------------------------------
>
>                 Key: HARMONY-6524
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6524
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M14
>            Reporter: Mark Hindess
>
> The failures are:
> RuleBasedCollatorTest  testGetCollationElementIteratorString
>   junit.framework.AssertionFailedError: expected:<1> but was:<2>
>   at org.apache.harmony.text.tests.java.text.RuleBasedCollatorTest.testGetCollationElementIteratorString (RuleBasedCollatorTest.java:140)
> RuleBasedCollatorTest  testGetCollationElementIteratorCharacterIterator
> junit.framework.AssertionFailedError: expected:<1> but was:<2>
> at org.apache.harmony.text.tests.java.text.RuleBasedCollatorTest.testGetCollationElementIteratorCharacterIterator (RuleBasedCollatorTest.java:191)

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