Changeset 22 for voting/src/test/java/geniusweb/voting/votingevaluators/LargestAgreementsLoopTest.java
- Timestamp:
- 09/22/20 16:26:36 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
voting/src/test/java/geniusweb/voting/votingevaluators/LargestAgreementsLoopTest.java
r21 r22 74 74 @Test 75 75 public void testCollectVotes() { 76 Votes vote1AB = new Votes(party1, 77 Arrays.asList(new Vote(party1, a, 2), new Vote(party1, b, 2))); 78 Votes vote2AB = new Votes(party2, 79 Arrays.asList(new Vote(party2, a, 2), new Vote(party2, b, 2))); 80 Votes vote3C = new Votes(party3, Arrays.asList(new Vote(party3, c, 2))); 81 Votes vote4AC = new Votes(party4, 82 Arrays.asList(new Vote(party4, a, 2), new Vote(party4, c, 2))); 76 Votes vote1AB = new Votes(party1, Arrays 77 .asList(new Vote(party1, a, 2, 9), new Vote(party1, b, 2, 9))); 78 Votes vote2AB = new Votes(party2, Arrays 79 .asList(new Vote(party2, a, 2, 9), new Vote(party2, b, 2, 9))); 80 Votes vote3C = new Votes(party3, 81 Arrays.asList(new Vote(party3, c, 2, 9))); 82 Votes vote4AC = new Votes(party4, Arrays 83 .asList(new Vote(party4, a, 2, 9), new Vote(party4, c, 2, 9))); 83 84 // party 1,2,4 vote for A, party 1,2 vote for B, party 3,4 vote for C. 84 85 // the biggest vote is P,Q,S
Note:
See TracChangeset
for help on using the changeset viewer.