Skip to content

Commit b9da271

Browse files
author
Alex Klymenko
committed
checkstyle: formatting
1 parent 4326564 commit b9da271

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

src/test/java/com/thealgorithms/datastructures/graphs/DijkstraAlgorithmTest.java

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.thealgorithms.datastructures.graphs;
22

3-
import org.junit.jupiter.api.BeforeEach;
4-
import org.junit.jupiter.api.Test;
5-
63
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
74
import static org.junit.jupiter.api.Assertions.assertThrows;
85

6+
import org.junit.jupiter.api.BeforeEach;
7+
import org.junit.jupiter.api.Test;
8+
99
public class DijkstraAlgorithmTest {
1010

1111
private DijkstraAlgorithm dijkstraAlgorithm;
@@ -14,15 +14,15 @@ public class DijkstraAlgorithmTest {
1414
@BeforeEach
1515
void setUp() {
1616
graph = new int[][] {
17-
{0, 4, 0, 0, 0, 0, 0, 8, 0},
18-
{4, 0, 8, 0, 0, 0, 0, 11, 0},
19-
{0, 8, 0, 7, 0, 4, 0, 0, 2},
20-
{0, 0, 7, 0, 9, 14, 0, 0, 0},
21-
{0, 0, 0, 9, 0, 10, 0, 0, 0},
22-
{0, 0, 4, 14, 10, 0, 2, 0, 0},
23-
{0, 0, 0, 0, 0, 2, 0, 1, 6},
24-
{8, 11, 0, 0, 0, 0, 1, 0, 7},
25-
{0, 0, 2, 0, 0, 0, 6, 7, 0},
17+
{0, 4, 0, 0, 0, 0, 0, 8, 0},
18+
{4, 0, 8, 0, 0, 0, 0, 11, 0},
19+
{0, 8, 0, 7, 0, 4, 0, 0, 2},
20+
{0, 0, 7, 0, 9, 14, 0, 0, 0},
21+
{0, 0, 0, 9, 0, 10, 0, 0, 0},
22+
{0, 0, 4, 14, 10, 0, 2, 0, 0},
23+
{0, 0, 0, 0, 0, 2, 0, 1, 6},
24+
{8, 11, 0, 0, 0, 0, 1, 0, 7},
25+
{0, 0, 2, 0, 0, 0, 6, 7, 0},
2626
};
2727

2828
dijkstraAlgorithm = new DijkstraAlgorithm(graph.length);
@@ -37,10 +37,7 @@ void testRunAlgorithm() {
3737
@Test
3838
void testGraphWithDisconnectedNodes() {
3939
int[][] disconnectedGraph = {
40-
{0, 3, 0, 0},
41-
{3, 0, 1, 0},
42-
{0, 1, 0, 0},
43-
{0, 0, 0, 0} // Node 3 is disconnected
40+
{0, 3, 0, 0}, {3, 0, 1, 0}, {0, 1, 0, 0}, {0, 0, 0, 0} // Node 3 is disconnected
4441
};
4542

4643
DijkstraAlgorithm dijkstraDisconnected = new DijkstraAlgorithm(disconnectedGraph.length);

0 commit comments

Comments
 (0)