diff --git a/src/test/java/com/mattrixwv/matrix/TestDoubleMatrix.java b/src/test/java/com/mattrixwv/matrix/TestDoubleMatrix.java index 7838348..75f7843 100644 --- a/src/test/java/com/mattrixwv/matrix/TestDoubleMatrix.java +++ b/src/test/java/com/mattrixwv/matrix/TestDoubleMatrix.java @@ -1,7 +1,7 @@ //Matrix/src/test/java/com/mattrixwv/matrix/TestDoubleMatrix.java //Mattrixwv // Created: 02-07-22 -//Modified: 02-08-22 +//Modified: 02-09-22 package com.mattrixwv.matrix; @@ -120,79 +120,82 @@ public class TestDoubleMatrix{ assertTrue("DoubleMatrix 1x1 failed equals DoubleMatrix.", matrix.equals(matrix)); @SuppressWarnings("unlikely-arg-type") boolean gridEquals = matrix.equals(grid1); - assertTrue("DoubleMatrix 1x1 failed equals double[][]", gridEquals); + assertTrue("DoubleMatrix 1x1 failed equals double[][].", gridEquals); //2x2 matrix = new DoubleMatrix(grid2); assertTrue("DoubleMatrix 2x2 failed equals DoubleMatrix.", matrix.equals(matrix)); @SuppressWarnings("unlikely-arg-type") boolean gridEquals2 = matrix.equals(grid2); - assertTrue("DoubleMatrix 2x2 failed equals double[][]", gridEquals2); + assertTrue("DoubleMatrix 2x2 failed equals double[][].", gridEquals2); //3x3 matrix = new DoubleMatrix(grid3); assertTrue("DoubleMatrix 3x3 failed equals DoubleMatrix.", matrix.equals(matrix)); @SuppressWarnings("unlikely-arg-type") boolean gridEquals3 = matrix.equals(grid3); - assertTrue("DoubleMatrix 3x3 failed equals double[][]", gridEquals3); + assertTrue("DoubleMatrix 3x3 failed equals double[][].", gridEquals3); //4x4 matrix = new DoubleMatrix(grid4); assertTrue("DoubleMatrix 4x4 failed equals DoubleMatrix.", matrix.equals(matrix)); @SuppressWarnings("unlikely-arg-type") boolean gridEquals4 = matrix.equals(grid4); - assertTrue("DoubleMatrix 4x4 failed equals double[][]", gridEquals4); + assertTrue("DoubleMatrix 4x4 failed equals double[][].", gridEquals4); //10x10 matrix = new DoubleMatrix(grid10); assertTrue("DoubleMatrix 10x10 failed equals DoubleMatrix.", matrix.equals(matrix)); @SuppressWarnings("unlikely-arg-type") boolean gridEquals10 = matrix.equals(grid10); - assertTrue("DoubleMatrix 10x10 failed equals double[][]", gridEquals10); + assertTrue("DoubleMatrix 10x10 failed equals double[][].", gridEquals10); } @Test public void testGets(){ //1x1 DoubleMatrix matrix = new DoubleMatrix(grid1); - assertEquals("DoubleMatrix 1x1 failed get", 0.5, matrix.get(0, 0), 0.0000001); + assertEquals("DoubleMatrix 1x1 failed get.", 0.5, matrix.get(0, 0), 0.0000001); //GetRow DoubleMatrix correctMatrix = new DoubleMatrix(new double[][]{{0.5}}); - assertEquals("DoubleMatrix 1x1 failed getRow", correctMatrix, matrix.getRow(0)); + assertEquals("DoubleMatrix 1x1 failed getRow.", correctMatrix, matrix.getRow(0)); + //GetColumn + correctMatrix = new DoubleMatrix(new double[][]{{0.5}}); + assertEquals("DoubleMatrix 1x1 failed getCol.", correctMatrix, matrix.getCol(0)); //2x2 matrix = new DoubleMatrix(grid2); - assertEquals("DoubleMatrix 2x2 failed get", 0.5, matrix.get(0, 0), 0.0000001); + assertEquals("DoubleMatrix 2x2 failed get.", 0.5, matrix.get(0, 0), 0.0000001); //GetRow correctMatrix = new DoubleMatrix(new double[][]{{0.5, 1.5}}); - assertEquals("DoubleMatrix 2x2 failed getRow", correctMatrix, matrix.getRow(0)); + assertEquals("DoubleMatrix 2x2 failed getRow.", correctMatrix, matrix.getRow(0)); //GetColumn correctMatrix = new DoubleMatrix(new double[][]{ {0.5}, {0.5} }); - assertEquals("DoubleMatrix 2x2 failed getCol", correctMatrix, matrix.getCol(0)); + assertEquals("DoubleMatrix 2x2 failed getCol.", correctMatrix, matrix.getCol(0)); //3x3 matrix = new DoubleMatrix(grid3); - assertEquals("DoubleMatrix 3x3 failed get", 0.5, matrix.get(0, 0), 0.0000001); + assertEquals("DoubleMatrix 3x3 failed get.", 0.5, matrix.get(0, 0), 0.0000001); //GetRow correctMatrix = new DoubleMatrix(new double[][]{{0.5, 1.5, 2.5}}); - assertEquals("DoubleMatrix 3x3 failed getRow", correctMatrix, matrix.getRow(0)); + assertEquals("DoubleMatrix 3x3 failed getRow.", correctMatrix, matrix.getRow(0)); //GetColumn correctMatrix = new DoubleMatrix(new double[][]{ {0.5}, {0.5}, {0.5} }); - assertEquals("DoubleMatrix 3x3 failed getCol", correctMatrix, matrix.getCol(0)); + assertEquals("DoubleMatrix 3x3 failed getCol.", correctMatrix, matrix.getCol(0)); //4x4 matrix = new DoubleMatrix(grid4); - assertEquals("DoubleMatrix 4x4 failed get", 0.5, matrix.get(0, 0), 0.0000001); + assertEquals("DoubleMatrix 4x4 failed get.", 0.5, matrix.get(0, 0), 0.0000001); //GetRow correctMatrix = new DoubleMatrix(new double[][]{{0.5, 1.5, 2.5, 3.5}}); - assertEquals("DoubleMatrix 4x4 failed getRow", correctMatrix, matrix.getRow(0)); + assertEquals("DoubleMatrix 4x4 failed getRow.", correctMatrix, matrix.getRow(0)); //GetColumn correctMatrix = new DoubleMatrix(new double[][]{ {0.5}, @@ -200,14 +203,14 @@ public class TestDoubleMatrix{ {0.5}, {0.5} }); - assertEquals("DoubleMatrix 4x4 failed getCol", correctMatrix, matrix.getCol(0)); + assertEquals("DoubleMatrix 4x4 failed getCol.", correctMatrix, matrix.getCol(0)); //10x10 matrix = new DoubleMatrix(grid10); - assertEquals("DoubleMatrix 10x10 failed get", 0.5, matrix.get(0, 0), 0.0000001); + assertEquals("DoubleMatrix 10x10 failed get.", 0.5, matrix.get(0, 0), 0.0000001); //GetRow correctMatrix = new DoubleMatrix(new double[][]{{0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}}); - assertEquals("DoubleMatrix 10x10 failed getRow", correctMatrix, matrix.getRow(0)); + assertEquals("DoubleMatrix 10x10 failed getRow.", correctMatrix, matrix.getRow(0)); //GetCol correctMatrix = new DoubleMatrix(new double[][]{ {0.5}, @@ -221,7 +224,7 @@ public class TestDoubleMatrix{ {0.5}, {0.5} }); - assertEquals("DoubleMatrix 10x10 failed getCol", correctMatrix, matrix.getCol(0)); + assertEquals("DoubleMatrix 10x10 failed getCol.", correctMatrix, matrix.getCol(0)); } @Test @@ -231,15 +234,15 @@ public class TestDoubleMatrix{ DoubleMatrix matrix = new DoubleMatrix(grid1); matrix.set(0, 0, 1.5); DoubleMatrix correctMatrix = new DoubleMatrix(new double[][]{{1.5}}); - assertEquals("DoubleMatrix 1x1 failed set", correctMatrix, matrix); + assertEquals("DoubleMatrix 1x1 failed set.", correctMatrix, matrix); //SetRow matrix.setRow(0, new double[]{0.0}); correctMatrix = new DoubleMatrix(new double[][]{{0.0}}); - assertEquals("DoubleMatrix 1x1 failed setRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 1x1 failed setRow.", correctMatrix, matrix); //SetCol matrix.setCol(0, new double[]{0.5}); correctMatrix = new DoubleMatrix(new double[][]{{0.5}}); - assertEquals("DoubleMatrix 1x1 failed setCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 1x1 failed setCol.", correctMatrix, matrix); //2x2 //Set @@ -249,14 +252,14 @@ public class TestDoubleMatrix{ {2.5, 1.5}, {0.5, 1.5} }); - assertEquals("DoubleMatrix 2x2 failed set", correctMatrix, matrix); + assertEquals("DoubleMatrix 2x2 failed set.", correctMatrix, matrix); //SetRow matrix.setRow(1, new double[]{1.5, 0.5}); correctMatrix = new DoubleMatrix(new double[][]{ {2.5, 1.5}, {1.5, 0.5} }); - assertEquals("DoubleMatrix 2x2 failed setRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 2x2 failed setRow.", correctMatrix, matrix); //SetCol matrix = new DoubleMatrix(grid2); matrix.setCol(0, new double[]{2.5, 2.5}); @@ -264,7 +267,7 @@ public class TestDoubleMatrix{ {2.5, 1.5}, {2.5, 1.5} }); - assertEquals("DoubleMatrix 2x2 failed setCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 2x2 failed setCol.", correctMatrix, matrix); //3x3 //Set @@ -275,7 +278,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5}, {0.5, 1.5, 2.5} }); - assertEquals("DoubleMatrix 3x3 failed set", correctMatrix, matrix); + assertEquals("DoubleMatrix 3x3 failed set.", correctMatrix, matrix); //SetRow matrix.setRow(0, new double[]{0, 0.5, 1.5}); correctMatrix = new DoubleMatrix(new double[][]{ @@ -283,7 +286,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5}, {0.5, 1.5, 2.5} }); - assertEquals("DoubleMatrix 3x3 failed setRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 3x3 failed setRow.", correctMatrix, matrix); //SetCol matrix.setCol(0, new double[]{0, 0, 0}); correctMatrix = new DoubleMatrix(new double[][]{ @@ -291,7 +294,7 @@ public class TestDoubleMatrix{ {0.0, 1.5, 2.5}, {0.0, 1.5, 2.5} }); - assertEquals("DoubleMatrix 3x3 failed setCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 3x3 failed setCol.", correctMatrix, matrix); //4x4 //Set @@ -303,7 +306,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5}, {0.5, 1.5, 2.5, 3.5} }); - assertEquals("DoubleMatrix 4x4 failed set", correctMatrix, matrix); + assertEquals("DoubleMatrix 4x4 failed set.", correctMatrix, matrix); //SetRow matrix.setRow(0, new double[]{3.5, 2.5, 1.5, 0.5}); correctMatrix = new DoubleMatrix(new double[][]{ @@ -312,7 +315,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5}, {0.5, 1.5, 2.5, 3.5} }); - assertEquals("DoubleMatrix 4x4 failed setRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 4x4 failed setRow.", correctMatrix, matrix); //SetCol matrix.setCol(0, new double[]{0, 0, 0, 0}); correctMatrix = new DoubleMatrix(new double[][]{ @@ -321,6 +324,7 @@ public class TestDoubleMatrix{ {0.0, 1.5, 2.5, 3.5}, {0.0, 1.5, 2.5, 3.5} }); + assertEquals("DoubleMatrix 4x4 failed setCol.", correctMatrix, matrix); //10x10 //Set @@ -338,7 +342,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5} }); - assertEquals("DoubleMatrix 10x10 failed set", correctMatrix, matrix); + assertEquals("DoubleMatrix 10x10 failed set.", correctMatrix, matrix); //SetRow matrix.setRow(0, new double[]{9.5, 8.5, 7.5, 6.5, 5.5, 4.5, 3.5, 2.5, 1.5, 0.5}); correctMatrix = new DoubleMatrix(new double[][]{ @@ -353,7 +357,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5} }); - assertEquals("DoubleMatrix 10x10 failed set", correctMatrix, matrix); + assertEquals("DoubleMatrix 10x10 failed setRow.", correctMatrix, matrix); //SetCol matrix.setCol(0, new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}); correctMatrix = new DoubleMatrix(new double[][]{ @@ -368,7 +372,7 @@ public class TestDoubleMatrix{ {0.0, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.0, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5} }); - assertEquals("DoubleMatrix 10x10 failed setCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 10x10 failed setCol.", correctMatrix, matrix); } @Test @@ -378,12 +382,12 @@ public class TestDoubleMatrix{ DoubleMatrix matrix = new DoubleMatrix(grid1); matrix.addRow(new double[]{0.5}); DoubleMatrix correctMatrix = new DoubleMatrix(new double[][]{{0.5}, {0.5}}); - assertEquals("DoubleMatrix 1x1 failed addRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 1x1 failed addRow.", correctMatrix, matrix); //AddColumn matrix = new DoubleMatrix(grid1); matrix.addCol(new double[]{0.5}); correctMatrix = new DoubleMatrix(new double[][]{{0.5, 0.5}}); - assertEquals("DoubleMatrix 1x1 failed addCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 1x1 failed addCol.", correctMatrix, matrix); //2x2 //AddRow @@ -394,7 +398,7 @@ public class TestDoubleMatrix{ {0.5, 1.5}, {0.5, 1.5} }); - assertEquals("DoubleMatrix 2x2 failed addRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 2x2 failed addRow.", correctMatrix, matrix); //AddColumn matrix = new DoubleMatrix(grid2); matrix.addCol(new double[]{2.5, 2.5}); @@ -402,7 +406,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5}, {0.5, 1.5, 2.5} }); - assertEquals("DoubleMatrix 2x2 failed addCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 2x2 failed addCol.", correctMatrix, matrix); //3x3 //AddRow @@ -414,7 +418,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5}, {0.5, 1.5, 2.5} }); - assertEquals("DoubleMatrix 3x3 failed addRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 3x3 failed addRow.", correctMatrix, matrix); //AddColumn matrix = new DoubleMatrix(grid3); matrix.addCol(new double[]{3.5, 3.5, 3.5}); @@ -423,7 +427,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5}, {0.5, 1.5, 2.5, 3.5} }); - assertEquals("DoubleMatrix 3x3 failed addCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 3x3 failed addCol.", correctMatrix, matrix); //4x4 //AddRow @@ -436,7 +440,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5}, {0.5, 1.5, 2.5, 3.5} }); - assertEquals("DoubleMatrix 4x4 failed addRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 4x4 failed addRow.", correctMatrix, matrix); //AddColumn matrix = new DoubleMatrix(grid4); matrix.addCol(new double[]{4.5, 4.5, 4.5, 4.5}); @@ -446,7 +450,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5}, {0.5, 1.5, 2.5, 3.5, 4.5} }); - assertEquals("DoubleMatrix 4x4 failed addCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 4x4 failed addCol.", correctMatrix, matrix); //10x10 //AddRow @@ -465,7 +469,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5} }); - assertEquals("DoubleMatrix 10x10 failed addRow", correctMatrix, matrix); + assertEquals("DoubleMatrix 10x10 failed addRow.", correctMatrix, matrix); //AddColumn matrix = new DoubleMatrix(grid10); matrix.addCol(new double[]{10.5, 10.5, 10.5, 10.5, 10.5, 10.5, 10.5, 10.5, 10.5, 10.5}); @@ -481,7 +485,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5} }); - assertEquals("DoubleMatrix 10x10 failed addCol", correctMatrix, matrix); + assertEquals("DoubleMatrix 10x10 failed addCol.", correctMatrix, matrix); } @Test @@ -491,13 +495,13 @@ public class TestDoubleMatrix{ DoubleMatrix matrix = new DoubleMatrix(grid1); DoubleMatrix secondMatrix = new DoubleMatrix(grid1); DoubleMatrix correctMatrix = new DoubleMatrix(new double[][]{{0.5, 0.5}}); - assertEquals("DoubleMatrix 1x1 failed appendRight", correctMatrix, matrix.appendRight(secondMatrix)); + assertEquals("DoubleMatrix 1x1 failed appendRight.", correctMatrix, matrix.appendRight(secondMatrix)); //appendBottom correctMatrix = new DoubleMatrix(new double[][]{ {0.5}, {0.5} }); - assertEquals("DoubleMatrix 1x1 failed appendBottom", correctMatrix, matrix.appendBottom(secondMatrix)); + assertEquals("DoubleMatrix 1x1 failed appendBottom.", correctMatrix, matrix.appendBottom(secondMatrix)); //2x2 //appendRight @@ -507,7 +511,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 0.5, 1.5}, {0.5, 1.5, 0.5, 1.5} }); - assertEquals("DoubleMatrix 2x2 failed appendRight", correctMatrix, matrix.appendRight(secondMatrix)); + assertEquals("DoubleMatrix 2x2 failed appendRight.", correctMatrix, matrix.appendRight(secondMatrix)); //appendBottom correctMatrix = new DoubleMatrix(new double[][]{ {0.5, 1.5}, @@ -515,7 +519,7 @@ public class TestDoubleMatrix{ {0.5, 1.5}, {0.5, 1.5} }); - assertEquals("DoubleMatrix 2x2 failed appendBottom", correctMatrix, matrix.appendBottom(secondMatrix)); + assertEquals("DoubleMatrix 2x2 failed appendBottom.", correctMatrix, matrix.appendBottom(secondMatrix)); //3x3 //appendRight @@ -526,7 +530,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 0.5, 1.5, 2.5}, {0.5, 1.5, 2.5, 0.5, 1.5, 2.5} }); - assertEquals("DoubleMatrix 3x3 failed appendRight", correctMatrix, matrix.appendRight(secondMatrix)); + assertEquals("DoubleMatrix 3x3 failed appendRight.", correctMatrix, matrix.appendRight(secondMatrix)); //appendBottom correctMatrix = new DoubleMatrix(new double[][]{ {0.5, 1.5, 2.5}, @@ -536,7 +540,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5}, {0.5, 1.5, 2.5} }); - assertEquals("DoubleMatrix 3x3 failed appendBottom", correctMatrix, matrix.appendBottom(secondMatrix)); + assertEquals("DoubleMatrix 3x3 failed appendBottom.", correctMatrix, matrix.appendBottom(secondMatrix)); //4x4 //appendRight @@ -548,7 +552,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 0.5, 1.5, 2.5, 3.5}, {0.5, 1.5, 2.5, 3.5, 0.5, 1.5, 2.5, 3.5} }); - assertEquals("DoubleMatrix 4x4 failed appendRight", correctMatrix, matrix.appendRight(secondMatrix)); + assertEquals("DoubleMatrix 4x4 failed appendRight.", correctMatrix, matrix.appendRight(secondMatrix)); //appendBottom correctMatrix = new DoubleMatrix(new double[][]{ {0.5, 1.5, 2.5, 3.5}, @@ -560,7 +564,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5}, {0.5, 1.5, 2.5, 3.5} }); - assertEquals("DoubleMatrix 4x4 failed appendBottom", correctMatrix, matrix.appendBottom(secondMatrix)); + assertEquals("DoubleMatrix 4x4 failed appendBottom.", correctMatrix, matrix.appendBottom(secondMatrix)); //10x10 //appendRight @@ -578,7 +582,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5} }); - assertEquals("DoubleMatrix 10x10 failed appendRight", correctMatrix, matrix.appendRight(secondMatrix)); + assertEquals("DoubleMatrix 10x10 failed appendRight.", correctMatrix, matrix.appendRight(secondMatrix)); //appendBottom correctMatrix = new DoubleMatrix(new double[][]{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, @@ -592,7 +596,7 @@ public class TestDoubleMatrix{ {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5}, {0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5} }); - assertEquals("DoubleMatrix 10x10 failed appendBottom", correctMatrix, matrix.appendBottom(secondMatrix)); + assertEquals("DoubleMatrix 10x10 failed appendBottom.", correctMatrix, matrix.appendBottom(secondMatrix)); } @Test