From 3a8901978700c5954909fd0d42aabbbd1c03a411 Mon Sep 17 00:00:00 2001 From: domi41 Date: Wed, 12 May 2021 14:41:41 +0200 Subject: [PATCH] test: billions of participants, in prime numbers --- README.md | 2 +- src/test/resources/assertions.json | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 08a2921..685caec 100644 --- a/README.md +++ b/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) diff --git a/src/test/resources/assertions.json b/src/test/resources/assertions.json index 94a1d8e..c3fadc5 100644 --- a/src/test/resources/assertions.json +++ b/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 + ] } ]