Browse Source

test: billions of participants, in prime numbers

feat-normalized-lcm
Dominique Merle 1 year ago
parent
commit
3a89019787
  1. 2
      README.md
  2. 19
      src/test/resources/assertions.json

2
README.md

@ -68,7 +68,7 @@ Want to normalize the tallies ? Use a `TallyNormalized` instead of a `Tally`.
- [x] Score Calculus
- [x] Ranking
- [x] Release v0.1.0
- [ ] Guess the amount of judges
- [x] Guess the amount of judges
- [ ] Allow defining a default grade
- [x] Static Grade (configurable)
- [x] Normalization (using least common multiple)

19
src/test/resources/assertions.json

@ -108,6 +108,25 @@
5,
1
]
},
{
"title": "Normalization with billions of Participants",
"participants": 10805010410,
"mode": "Normalized",
"tallies": [
[ 2161002082, 2161002082, 2161002082, 2161002082, 2161002082 ],
[ 1080501041, 1080501041, 1080501041, 1080501041, 1080501041 ],
[ 0, 0, 1000092263, 0, 0 ],
[ 0, 1050092837, 0, 1050092837, 0 ],
[ 980091907, 0, 0, 980091907, 980091907 ]
],
"ranks": [
3,
3,
2,
5,
1
]
}
]
Loading…
Cancel
Save