Skip to content

Commit 2a421ac

Browse files
authored
Fix formatting of matrix initialization in tests
1 parent f88ace4 commit 2a421ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ class StochasticMatrixTest {
77

88
@Test
99
void testRowStochasticMatrix() {
10-
double[][] matrix = {{0.2, 0.5, 0.3},{0.1, 0.6, 0.3}};
10+
double[][] matrix = {{0.2, 0.5, 0.3}, {0.1, 0.6, 0.3}};
1111
assertTrue(StochasticMatrix.isRowStochastic(matrix));
1212
assertFalse(StochasticMatrix.isColumnStochastic(matrix));
1313
}
1414

1515
@Test
1616
void testColumnStochasticMatrix() {
17-
double[][] matrix = {{0.4, 0.2},{0.6, 0.8}};
17+
double[][] matrix = {{0.4, 0.2}, {0.6, 0.8}};
1818
assertTrue(StochasticMatrix.isColumnStochastic(matrix));
1919
}
2020

2121
@Test
2222
void testInvalidMatrix() {
23-
double[][] matrix = {{0.5, -0.5},{0.5, 1.5}};
23+
double[][] matrix = {{0.5, -0.5}, {0.5, 1.5}};
2424
assertFalse(StochasticMatrix.isRowStochastic(matrix));
2525
}
2626
}

0 commit comments

Comments
 (0)