Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
306
306ass8
Commits
4c83a5d7
Commit
4c83a5d7
authored
Apr 29, 2019
by
michael lundquist
Browse files
Adding bfs to the shortestPathTester
parent
a5e55a18
Changes
1
Show whitespace changes
Inline
Side-by-side
asseight/src/test/java/com/ds/asseight/SearchTest.java
View file @
4c83a5d7
...
...
@@ -62,6 +62,8 @@ public class SearchTest {
ArrayList
<
String
>
expected
=
new
ArrayList
<>(
Arrays
.
asList
(
shortestPath
));
ArrayList
<
String
>
actual
=
createGraph
().
dfs
(
"A"
,
"D"
);
assertEquals
(
expected
,
actual
);
actual
=
createGraph
().
bfs
(
"A"
,
"D"
);
assertEquals
(
expected
,
actual
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment