You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Multiplying with null matrix B should throw exception"
108
-
);
91
+
assertThrows(IllegalArgumentException.class, () -> StrassenMatrixMultiplication.multiply(null, MATRIX_2X2_B), "Multiplying with null matrix A should throw exception");
92
+
assertThrows(IllegalArgumentException.class, () -> StrassenMatrixMultiplication.multiply(MATRIX_2X2_A, null), "Multiplying with null matrix B should throw exception");
"Multiplying matrices of different square dimensions should throw exception"
131
-
);
103
+
assertThrows(IllegalArgumentException.class, () -> StrassenMatrixMultiplication.multiply(MATRIX_2X2_A, MATRIX_3X3_A), "Multiplying matrices of different square dimensions should throw exception");
132
104
}
133
105
134
106
@Test
@@ -138,10 +110,7 @@ void testEmptyMatrix() {
138
110
assertEquals(0, result.length, "Multiplying empty matrices should result in an empty matrix");
139
111
140
112
double[][] emptyRows = {{}};
141
-
assertThrows(
142
-
IllegalArgumentException.class, // Or handle as empty depending on strictness
0 commit comments