Skip to content

Commit 813fcb0

Browse files
author
lennart
committed
remove unsued parameter from tests
1 parent 7151242 commit 813fcb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/com/thealgorithms/tree/CentroidDecompositionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ void forEachAncestorVisitsCorrectChain() {
193193
@Test
194194
void buildingFromDifferentStartNodesYieldsValidTrees() {
195195
CentroidDecomposition a = new CentroidDecomposition(16, 0);
196-
copyEdges(cd, a);
196+
copyEdges(a);
197197
a.build();
198198
assertValidCentroidTree(a, 16);
199199

200200
CentroidDecomposition b = new CentroidDecomposition(16, 7);
201-
copyEdges(cd, b);
201+
copyEdges(b);
202202
b.build();
203203
assertValidCentroidTree(b, 16);
204204
}
@@ -223,7 +223,7 @@ private static void assertValidCentroidTree(CentroidDecomposition cd, int n) {
223223
assertEquals(n - 1, edges, "centroid tree must have n-1 edges");
224224
}
225225

226-
private static void copyEdges(CentroidDecomposition from, CentroidDecomposition to) {
226+
private static void copyEdges(CentroidDecomposition to) {
227227
to.addEdgeTree(0, 1);
228228
to.addEdgeTree(0, 2);
229229
to.addEdgeTree(0, 3);

0 commit comments

Comments
 (0)