Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.0M11
-
None
-
None
-
Harmony M11
Description
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.Locale;
import junit.framework.TestCase;
public class ParseTest extends TestCase {
public void testNumberParser() throws ParseException
{ NumberFormat f = NumberFormat.getInstance(Locale.US); Number c = f.parse("1 2"); assertEquals(1, c.intValue()); }}
On the RI this passes, whereas on Harmony it fails with:
junit.framework.AssertionFailedError: expected:<1> but was:<12>