Skip to content

Commit 492b040

Browse files
committed
Fix
1 parent db54e14 commit 492b040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public void testSimpleGraph() {
1313
// Test graph with 5 nodes and weighted edges
1414
int[][] graph = {{0, 2, 0, 6, 0}, {2, 0, 3, 8, 5}, {0, 3, 0, 0, 7}, {6, 8, 0, 0, 9}, {0, 5, 7, 9, 0}};
1515

16-
int[] expectedParent = {-1, 0, 1, 0, 1}; // Expected MST parent array
16+
int[] expectedParent = {-1, 0, 1, 0, 1};
1717
int[] actualParent = primMST.primMST(graph);
1818

1919
assertArrayEquals(expectedParent, actualParent);

0 commit comments

Comments
 (0)