Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-20wi
project08
Commits
01e652a8
Commit
01e652a8
authored
4 years ago
by
Ethan Ordentlich
Browse files
Options
Download
Email Patches
Plain Diff
error messages go brrr
parent
99890b19
1 merge request
!2
Review Tests for Project 8
Pipeline
#46659
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/edu/caltech/cs2/project08/DijkstraTest.java
+2
-2
tests/edu/caltech/cs2/project08/DijkstraTest.java
with
2 additions
and
2 deletions
+2
-2
tests/edu/caltech/cs2/project08/DijkstraTest.java
View file @
01e652a8
...
...
@@ -77,10 +77,10 @@ public class DijkstraTest {
String
line
=
s
.
nextLine
();
if
(
line
.
equals
(
"null"
))
{
assertNull
(
res
,
"Path does not exist from "
+
start
+
" to "
+
end
+
" but was found"
);
assertNull
(
res
,
"Path does not exist from "
+
start
+
" to "
+
end
+
" but
a path
was found"
);
}
else
{
assertNotNull
(
res
,
"Path exists from "
+
start
+
" to "
+
end
+
" but was not found"
);
assertNotNull
(
res
,
"Path exists from "
+
start
+
" to "
+
end
+
" but
a path
was not found"
);
for
(
Location
l
:
res
)
{
if
(
prev
!=
null
)
{
pathLen
+=
bmg
.
adjacent
(
prev
.
id
,
l
.
id
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help