You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2016/04/30 15:58:01 UTC
[2/2] [math] Fixed bug in unit test (French locale).
Fixed bug in unit test (French locale).
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/7c1a59fa
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/7c1a59fa
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/7c1a59fa
Branch: refs/heads/develop
Commit: 7c1a59fa7ab58f5f7cdc124ff2667cc501570a4f
Parents: b8e290a
Author: Gilles <er...@apache.org>
Authored: Sat Apr 30 15:51:44 2016 +0200
Committer: Gilles <er...@apache.org>
Committed: Sat Apr 30 15:51:44 2016 +0200
----------------------------------------------------------------------
.../apache/commons/math4/complex/ComplexFormatAbstractTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-math/blob/7c1a59fa/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java b/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java
index be7768a..dd53848 100644
--- a/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java
+++ b/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java
@@ -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();