Skip to content

Commit 64a97db

Browse files
committed
testMultiply3by2and2by1 test case updated
1 parent 4bf395b commit 64a97db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/com/thealgorithms/matrix/MatrixMultiplicationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ void testMultiply2by2(){
2121
}
2222

2323
@Test
24-
void testMultiply3by2and1(){
24+
void testMultiply3by2and2by1(){
2525
double[][] matrixA = {{1.0,2.0},{3.0,4.0},{5.0,6.0}};
2626
double[][] matrixB = {{7.0},{8.0}};
2727
double[][] expected = {{23.0}, {53.0}, {83.0}};
2828

2929
double[][] result = MatrixMultiplication.multiply(matrixA, matrixB);
30-
assertMatrixEquals(expected, result); // Because assertEquals can fails due to floating point precision issues, Therfore use assertMatrixEquals
30+
assertMatrixEquals(expected, result);
3131
}
3232

3333
@Test

0 commit comments

Comments
 (0)