style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@@ -1,28 +1,21 @@
package com.thealgorithms.searches;
import org.junit.jupiter.api.Test;
import java.util.List;
import java.util.Optional;
import static org.junit.jupiter.api.Assertions.*;
import java.util.List;
import java.util.Optional;
import org.junit.jupiter.api.Test;
class BreadthFirstSearchTest {
private static final DepthFirstSearch.Node rootNode = new DepthFirstSearch.Node(
"A",
List.of(
new DepthFirstSearch.Node(
"B",
List.of(
new DepthFirstSearch.Node("D"),
new DepthFirstSearch.Node("F", List.of(new DepthFirstSearch.Node("H"), new DepthFirstSearch.Node("I")))
)
),
new DepthFirstSearch.Node("C", List.of(new DepthFirstSearch.Node("G"))),
new DepthFirstSearch.Node("E")
)
);
private static final DepthFirstSearch.Node rootNode = new DepthFirstSearch.Node("A",
List.of(
new DepthFirstSearch.Node("B",
List.of(new DepthFirstSearch.Node("D"),
new DepthFirstSearch.Node("F",
List.of(new DepthFirstSearch.Node("H"), new DepthFirstSearch.Node("I"))))),
new DepthFirstSearch.Node("C", List.of(new DepthFirstSearch.Node("G"))),
new DepthFirstSearch.Node("E")));
@Test
void searchI() {