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
project03
Commits
328b35de
Commit
328b35de
authored
4 years ago
by
Ethan Ordentlich
Browse files
Options
Download
Email Patches
Plain Diff
Switch IDequeTests.testAddAll to check the iterator
parent
730392cc
1 merge request
!2
Small revisions
Pipeline
#43182
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/edu/caltech/cs2/interfaces/IDequeTests.java
+2
-3
tests/edu/caltech/cs2/interfaces/IDequeTests.java
with
2 additions
and
3 deletions
+2
-3
tests/edu/caltech/cs2/interfaces/IDequeTests.java
View file @
328b35de
...
...
@@ -290,8 +290,7 @@ public interface IDequeTests extends ICollectionTests {
coll
.
add
(
num
);
}
impl
.
addAll
(
coll
);
for
(
Object
num
:
coll
)
{
assertTrue
(
impl
.
contains
(
num
),
"value should be contained in deque"
);
}
MatcherAssert
.
assertThat
(
"IDeque has incorrect elements / order"
,
impl
,
IsIterableContainingInOrder
.
contains
(
coll
));
}
}
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