Commit 737ca6e2 authored by Adam Blank's avatar Adam Blank
Browse files

Update ApprovalVoteListTests.java

parent 0ad02b67
No related merge requests found
Pipeline #116024 failed with stage
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment