Types: fix tests 68/12268/1
Calixte DENIZET [Tue, 13 Aug 2013 12:15:49 +0000 (14:15 +0200)]
Change-Id: I2987c51608e9f8398a04fa69c0548fcd0c26af8f

scilab/modules/types/src/java/org/scilab/modules/types/ScilabDouble.java
scilab/modules/types/tests/java/org/scilab/tests/modules/types/testEquals.java

index 789ab83..675c2e2 100644 (file)
@@ -430,10 +430,10 @@ public class ScilabDouble implements ScilabType {
                     final double y = getImaginaryElement(i, j);
                     if (y != 0) {
                         if (y > 0) {
-                            result.append("+");
+                            result.append(" + ");
                         }
                         result.append(Double.toString(y));
-                        result.append("*%i");
+                        result.append(" * %i");
                     }
                 }
                 if (j != getWidth() - 1) {
index 576961d..bec3899 100644 (file)
@@ -199,7 +199,7 @@ public class testEquals {
         assertTrue(emptyMatrix.getHeight() == 0);
         assertTrue(emptyMatrix.getWidth() == 0);
         assertTrue(emptyMatrix.isEmpty() == true);
-        assertTrue(emptyMatrix.toString().equals("int([])") == true);
+        assertTrue(emptyMatrix.toString().equals("[]") == true);
         assertTrue(emptyMatrix.getType() == ScilabTypeEnum.sci_ints);
         emptyMatrix.setData(a, true);
         assertTrue(emptyMatrix.getType() == ScilabTypeEnum.sci_ints);