Index: lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixBigTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixBigTest.java:1.1 lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixBigTest.java:1.2 --- lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixBigTest.java:1.1 Fri Oct 21 14:27:23 2005 +++ lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixBigTest.java Mon Jan 23 13:50:06 2006 @@ -23,17 +23,14 @@ * Created: 27 oct. 2004 * * @author Benjamin Poussin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2005/10/21 14:27:23 $ + * Mise a jour: $Date: 2006/01/23 13:50:06 $ * par : $Author: bpoussin $ */ package org.codelutin.math.matrix; -import java.util.Arrays; -import java.util.NoSuchElementException; -import junit.framework.TestCase; public class BasicMatrixBigTest extends BasicMatrixTest { // BasicMatrixTest Index: lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixTest.java:1.5 lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixTest.java:1.6 --- lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixTest.java:1.5 Thu Oct 20 20:58:04 2005 +++ lutinmatrix/src/test/org/codelutin/math/matrix/BasicMatrixTest.java Mon Jan 23 13:50:06 2006 @@ -23,9 +23,9 @@ * Created: 27 oct. 2004 * * @author Benjamin Poussin - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * - * Mise a jour: $Date: 2005/10/20 20:58:04 $ + * Mise a jour: $Date: 2006/01/23 13:50:06 $ * par : $Author: bpoussin $ */ @@ -43,7 +43,6 @@ public void testNew() throws Exception { BasicMatrix mat = null; - try{ mat = new BasicMatrix(getFactory(), null); assertFalse(true); // on ne doit pas etre ici @@ -60,6 +59,7 @@ mat = new BasicMatrix(getFactory(), new int[]{100}); mat = new BasicMatrix(getFactory(), new int[]{10,1}); + assertEquals(0.0, mat.getMaxOccurence()); mat = new BasicMatrix(getFactory(), new int[]{10,10,10,10}); try{ mat = new BasicMatrix(getFactory(), new int[]{-10}); Index: lutinmatrix/src/test/org/codelutin/math/matrix/FloatVectorTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/FloatVectorTest.java:1.1 lutinmatrix/src/test/org/codelutin/math/matrix/FloatVectorTest.java:1.2 --- lutinmatrix/src/test/org/codelutin/math/matrix/FloatVectorTest.java:1.1 Fri Oct 21 14:27:23 2005 +++ lutinmatrix/src/test/org/codelutin/math/matrix/FloatVectorTest.java Mon Jan 23 13:50:06 2006 @@ -23,23 +23,18 @@ * Created: 6 octobre 2005 01:54:49 CEST * * @author Benjamin POUSSIN - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Last update: $Date: 2005/10/21 14:27:23 $ + * Last update: $Date: 2006/01/23 13:50:06 $ * by : $Author: bpoussin $ */ package org.codelutin.math.matrix; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import junit.framework.TestCase; public class FloatVectorTest extends TestCase { // FloatVectorTest - /** to use log facility, just put in your code: log.info(\"...\"); */ - static private Log log = LogFactory.getLog(FloatVectorTest.class); - public void testAll() throws Exception { FloatVector v = new FloatVector(16); assertEquals(0.0, v.getMaxOccurence()); Index: lutinmatrix/src/test/org/codelutin/math/matrix/MatrixEncoderDecoderTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/MatrixEncoderDecoderTest.java:1.4 lutinmatrix/src/test/org/codelutin/math/matrix/MatrixEncoderDecoderTest.java:1.5 --- lutinmatrix/src/test/org/codelutin/math/matrix/MatrixEncoderDecoderTest.java:1.4 Thu Oct 20 20:58:04 2005 +++ lutinmatrix/src/test/org/codelutin/math/matrix/MatrixEncoderDecoderTest.java Mon Jan 23 13:50:06 2006 @@ -23,21 +23,19 @@ * Created: 31 oct. 2004 * * @author Benjamin Poussin - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * - * Mise a jour: $Date: 2005/10/20 20:58:04 $ + * Mise a jour: $Date: 2006/01/23 13:50:06 $ * par : $Author: bpoussin $ */ package org.codelutin.math.matrix; -import java.io.StringReader; -import java.io.StringWriter; import java.util.Arrays; import java.util.Collections; import java.util.List; + import junit.framework.TestCase; -import org.codelutin.xml.XMLEncoderDecoder; public class MatrixEncoderDecoderTest extends TestCase { // MatrixEncoderDecoderTest Index: lutinmatrix/src/test/org/codelutin/math/matrix/MatrixHelperTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/MatrixHelperTest.java:1.4 lutinmatrix/src/test/org/codelutin/math/matrix/MatrixHelperTest.java:1.5 --- lutinmatrix/src/test/org/codelutin/math/matrix/MatrixHelperTest.java:1.4 Thu Oct 20 20:58:04 2005 +++ lutinmatrix/src/test/org/codelutin/math/matrix/MatrixHelperTest.java Mon Jan 23 13:50:06 2006 @@ -23,16 +23,14 @@ * Created: 29 oct. 2004 * * @author Benjamin Poussin - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * - * Mise a jour: $Date: 2005/10/20 20:58:04 $ + * Mise a jour: $Date: 2006/01/23 13:50:06 $ * par : $Author: bpoussin $ */ package org.codelutin.math.matrix; -import java.util.Arrays; -import java.util.NoSuchElementException; import junit.framework.TestCase; public class MatrixHelperTest extends TestCase { // MatrixHelperTest Index: lutinmatrix/src/test/org/codelutin/math/matrix/MatrixNDTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/MatrixNDTest.java:1.6 lutinmatrix/src/test/org/codelutin/math/matrix/MatrixNDTest.java:1.7 --- lutinmatrix/src/test/org/codelutin/math/matrix/MatrixNDTest.java:1.6 Fri Jan 13 16:55:30 2006 +++ lutinmatrix/src/test/org/codelutin/math/matrix/MatrixNDTest.java Mon Jan 23 13:50:06 2006 @@ -21,15 +21,14 @@ * * Created: 10 mai 2004 * -* @version $Revision: 1.6 $ +* @version $Revision: 1.7 $ * -* Mise a jour: $Date: 2006/01/13 16:55:30 $ +* Mise a jour: $Date: 2006/01/23 13:50:06 $ * par : $Author: bpoussin $ */ package org.codelutin.math.matrix; -import java.io.IOException; import java.io.StreamTokenizer; import java.io.StringReader; import java.util.ArrayList; @@ -57,6 +56,7 @@ mat = getFactory().create("Ma mat", new List[]{s1, s2, s3}); mat = getFactory().create("Ma mat", new List[]{s1, s2, s3}, new String[]{"dim abc", "dim efg", "dim klm"}); + assertEquals(0.0, mat.getMaxOccurence()); } Index: lutinmatrix/src/test/org/codelutin/math/matrix/SubMatrixTest.java diff -u lutinmatrix/src/test/org/codelutin/math/matrix/SubMatrixTest.java:1.5 lutinmatrix/src/test/org/codelutin/math/matrix/SubMatrixTest.java:1.6 --- lutinmatrix/src/test/org/codelutin/math/matrix/SubMatrixTest.java:1.5 Thu Oct 20 20:58:04 2005 +++ lutinmatrix/src/test/org/codelutin/math/matrix/SubMatrixTest.java Mon Jan 23 13:50:06 2006 @@ -23,9 +23,9 @@ * Created: 29 oct. 2004 * * @author Benjamin Poussin - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * - * Mise a jour: $Date: 2005/10/20 20:58:04 $ + * Mise a jour: $Date: 2006/01/23 13:50:06 $ * par : $Author: bpoussin $ */ @@ -271,10 +271,6 @@ public void testSubSubMults() throws Exception { - List s1 = Arrays.asList(new String[]{"a", "b", "c"}); - List s2 = Arrays.asList(new String[]{"e", "f", "g"}); - List s3 = Arrays.asList(new String[]{"k", "l", "m"}); - MatrixND mat = null; mat = getFactory().create("Ma mat", new int[]{4, 4});