[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [2/2] [math] Fixed bug in unit test (French locale).
From:       erans () apache ! org
Date:       2016-04-30 13:58:01
Message-ID: d6c87f2f7e514d608aaf8127c086747c () git ! apache ! org
[Download RAW message or body]

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 <erans@apache.org>
Authored: Sat Apr 30 15:51:44 2016 +0200
Committer: Gilles <erans@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();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic