Skip to content

Commit e27b4dd

Browse files
committed
fix: 테스트 오류 수정
1 parent 5e5b746 commit e27b4dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yoonexample/src/test/java/graph/WeightedGraphTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class WeightedGraphTest {
1212

1313
@BeforeEach
1414
void setUp() {
15-
this.graph = new ListWeightGraph(7, Point.class);
15+
this.graph = new ListWeightGraph(6, Point.class);
1616
}
1717

1818
@Test
@@ -95,9 +95,9 @@ void setUp() {
9595
graph.addEdge(Point.F, Point.E, 13);
9696

9797
graph.convertToMST();
98-
assertThat(graph.showGraphEdgeInfo()).isEqualTo("A: D\nB: C\nC: B D\nD: A C E F\nE: D\nF: D\n");
98+
assertThat(graph.showGraphEdgeInfo()).isEqualTo("A: D\nB: C\nC: B D\nD: C F E A\nE: D\nF: D\n");
9999
assertThat(graph.showGraphEdgeWeightInfo())
100-
.isEqualTo("(A-D), w: 8\n(D-C), w: 6\n(F-D), w:4\n(D-E), w:3\n(B-C), w:2\n");
100+
.isEqualTo("(A-D), w: 8\n(D-C), w: 6\n(F-D), w: 4\n(D-E), w: 3\n(B-C), w: 2\n");
101101
}
102102

103103
private enum Point {

0 commit comments

Comments
 (0)