Skip to content

Commit 92a9add

Browse files
authored
Merge pull request kodecocodes#649 from raywenderlich/Fixes-DFS-Tests
Fixes the tests.
2 parents 015812b + 575baca commit 92a9add

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Depth-First Search/Tests/DepthFirstSearchTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DepthFirstSearchTests: XCTestCase {
99
#endif
1010
}
1111
func testExploringTree() {
12-
let tree = Digraph()
12+
let tree = Graph()
1313

1414
let nodeA = tree.addNode("a")
1515
let nodeB = tree.addNode("b")
@@ -34,7 +34,7 @@ class DepthFirstSearchTests: XCTestCase {
3434
}
3535

3636
func testExploringDigraph() {
37-
let digraph = Digraph()
37+
let digraph = Graph()
3838

3939
let nodeA = digraph.addNode("a")
4040
let nodeB = digraph.addNode("b")
@@ -81,7 +81,7 @@ class DepthFirstSearchTests: XCTestCase {
8181
}
8282

8383
func testExploringDigraphWithASingleNode() {
84-
let digraph = Digraph()
84+
let digraph = Graph()
8585
let node = digraph.addNode("a")
8686

8787
let nodesExplored = depthFirstSearch(digraph, source: node)

0 commit comments

Comments
 (0)