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-23wi
project03
Commits
d809bfeb
Commit
d809bfeb
authored
2 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Fix iterator test
parent
f118f68e
Pipeline
#76519
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/datastructures/LinkedDequeTests.java
+2
-2
tests/edu/caltech/cs2/datastructures/LinkedDequeTests.java
with
2 additions
and
2 deletions
+2
-2
tests/edu/caltech/cs2/datastructures/LinkedDequeTests.java
View file @
d809bfeb
...
...
@@ -76,8 +76,8 @@ public class LinkedDequeTests {
@Test
public
void
testIteratorCreationconstant
()
{
Function
<
Integer
,
IDeque
<
Integer
>>
provide
=
(
Integer
numElements
)
->
{
Constructor
c
=
Reflection
.
getConstructor
(
LinkedDeque
.
class
,
int
.
class
);
IDeque
<
Integer
>
q
=
Reflection
.
newInstance
(
c
,
numElements
*
2
);
Constructor
c
=
Reflection
.
getConstructor
(
LinkedDeque
.
class
);
IDeque
<
Integer
>
q
=
Reflection
.
newInstance
(
c
);
for
(
int
i
=
0
;
i
<
numElements
;
i
++)
{
q
.
addBack
(
i
);
}
...
...
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