Fixed bug in unit test (French locale).

This commit is contained in:
Gilles 2016-04-30 15:51:44 +02:00
parent b8e290a2cc
commit 7c1a59fa7a
1 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ public abstract class ComplexFormatAbstractTest {
@Test
public void testFormatObjectStringBufferFieldPositionWithComplex() {
ComplexFormat cf = ComplexFormat.getInstance();
ComplexFormat cf = ComplexFormat.getInstance(getLocale());
String source = "1" + getDecimalCharacter() + "23 + 1" + getDecimalCharacter() + "43i";
Object expected = new Complex(1.23, 1.43);
String formatted = cf.format(expected, new StringBuffer(), new FieldPosition(0)).toString();
@ -365,7 +365,7 @@ public abstract class ComplexFormatAbstractTest {
@Test
public void testFormatObjectStringBufferFieldPositionWitNumber() {
ComplexFormat cf = ComplexFormat.getInstance();
ComplexFormat cf = ComplexFormat.getInstance(getLocale());
String source = "1" + getDecimalCharacter() + "23";
Number expected = new Double(1.23);
String formatted = cf.format(expected, new StringBuffer(), new FieldPosition(0)).toString();