From d50af1161e365a5b83270899933b240ab61bd7b7 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 7 Jun 2021 20:52:18 +1000 Subject: [PATCH] Implement --quota-mode ers97 --- html/index.html | 8 +- html/index.js | 30 ++++++- html/worker.js | 6 +- src/election.rs | 6 +- src/main.rs | 10 ++- src/numbers/fixed.rs | 4 +- src/numbers/native.rs | 4 +- src/numbers/rational_num.rs | 4 +- src/numbers/rational_rug.rs | 4 +- src/stv/mod.rs | 169 +++++++++++++++++++++++++++++------- src/stv/wasm.rs | 16 ++-- tests/aec.rs | 1 + tests/prsa.rs | 1 + 13 files changed, 203 insertions(+), 60 deletions(-) diff --git a/html/index.html b/html/index.html index 019d98b..1680b3e 100644 --- a/html/index.html +++ b/html/index.html @@ -40,7 +40,7 @@ - + @@ -70,13 +70,13 @@ - - --> +