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-25wi
lab02
Commits
737ca6e2
Commit
737ca6e2
authored
1 month ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update ApprovalVoteListTests.java
parent
0ad02b67
master
No related merge requests found
Pipeline
#116024
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/edu/caltech/cs2/datastructures/ApprovalVoteListTests.java
+2
-2
...edu/caltech/cs2/datastructures/ApprovalVoteListTests.java
with
2 additions
and
2 deletions
+2
-2
tests/edu/caltech/cs2/datastructures/ApprovalVoteListTests.java
View file @
737ca6e2
...
...
@@ -65,13 +65,13 @@ public class ApprovalVoteListTests {
@Order
(
2
)
@Tag
(
"C"
)
@DisplayName
(
"tallyVotes() takes
linear
time"
)
@DisplayName
(
"tallyVotes() takes
quadratic
time"
)
@Timeout
(
value
=
10
,
unit
=
SECONDS
)
@Test
()
public
void
testWinnerComplexity
()
{
Function
<
Integer
,
List
<
Set
<
String
>>>
provide
=
VoteGenerator:
:
generateVotes
;
Consumer
<
List
<
Set
<
String
>>>
winner
=
ApprovalVoteList:
:
tallyVotes
;
RuntimeInstrumentation
.
assertAtMost
(
"tallyVotes"
,
RuntimeInstrumentation
.
ComplexityType
.
LINEAR
,
provide
,
winner
,
8
);
RuntimeInstrumentation
.
assertAtMost
(
"tallyVotes"
,
RuntimeInstrumentation
.
ComplexityType
.
QUADRATIC
,
provide
,
winner
,
8
);
}
@Order
(
1
)
...
...
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