Add preset and test for Victorian Legislative Council STV

This commit is contained in:
RunasSudo 2023-02-08 21:36:15 +11:00
parent eaf864062d
commit ba6ad8964f
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
8 changed files with 39596 additions and 0 deletions

View File

@ -18,6 +18,7 @@ The preset dropdown allows you to choose from a hardcoded list of preloaded STV
| NSW Local Government STV | Rules from the [*Local Government (General) Regulation 2021*](https://legislation.nsw.gov.au/view/html/inforce/current/sl-2021-0460), using the weighted inclusive Gregory method. | [E2] [E5] | ✓ | | NSW Local Government STV | Rules from the [*Local Government (General) Regulation 2021*](https://legislation.nsw.gov.au/view/html/inforce/current/sl-2021-0460), using the weighted inclusive Gregory method. | [E2] [E5] | ✓ |
| Western Australia STV | Rules from the [*Electoral Act 1907* (WA)](https://www.legislation.wa.gov.au/legislation/prod/filestore.nsf/FileURL/mrdoc_29498.pdf/$FILE/Electoral%20Act%201907%20-%20[17-a0-06].pdf), using the weighted inclusive Gregory method. | [E2] [E3] | | | Western Australia STV | Rules from the [*Electoral Act 1907* (WA)](https://www.legislation.wa.gov.au/legislation/prod/filestore.nsf/FileURL/mrdoc_29498.pdf/$FILE/Electoral%20Act%201907%20-%20[17-a0-06].pdf), using the weighted inclusive Gregory method. | [E2] [E3] | |
| Australian Capital Territory STV | Rules from the [*Electoral Act 1992* (ACT)](https://www.legislation.act.gov.au/View/a/1992-71/current/PDF/1992-71.PDF), using the exclusive Gregory method. | | ✓ | | Australian Capital Territory STV | Rules from the [*Electoral Act 1992* (ACT)](https://www.legislation.act.gov.au/View/a/1992-71/current/PDF/1992-71.PDF), using the exclusive Gregory method. | | ✓ |
| Victorian Legislative Council STV | Rules from section 114A of the [*Electoral Act 2002* (Vic)](https://content.legislation.vic.gov.au/sites/default/files/2022-06/02-23aa064%20authorised.pdf), using the unweighted inclusive Gregory method. | [E2] | ✓ |
| Minneapolis STV | Rules from chapter 167 of the [*Minneapolis Code of Ordinances*](https://library.municode.com/mn/minneapolis/codes/code_of_ordinances?nodeId=COOR_TIT8.5EL_CH167MUELRUCO), using the weighted inclusive Gregory method. | [E6] | ✓ | | Minneapolis STV | Rules from chapter 167 of the [*Minneapolis Code of Ordinances*](https://library.municode.com/mn/minneapolis/codes/code_of_ordinances?nodeId=COOR_TIT8.5EL_CH167MUELRUCO), using the weighted inclusive Gregory method. | [E6] | ✓ |
| Cambridge STV | Rules in force in Cambridge, Massachusetts, using random sample transfers. These rules are derived from the [former chapter 54A of the Massachusetts General Laws](https://www.cambridgema.gov/-/media/Files/electioncommission/massachusettsgenerallawschapter54a.pdf), but have by regulation been modified to incorporate the procedures set out in Article IX of the former [1938 Charter of the City of Cincinnati](https://catalog.hathitrust.org/Record/001754258). See also [here](https://web.archive.org/web/20081118104049/http://www.fairvote.org/media/1993countmanual.pdf). | | ✓ | | Cambridge STV | Rules in force in Cambridge, Massachusetts, using random sample transfers. These rules are derived from the [former chapter 54A of the Massachusetts General Laws](https://www.cambridgema.gov/-/media/Files/electioncommission/massachusettsgenerallawschapter54a.pdf), but have by regulation been modified to incorporate the procedures set out in Article IX of the former [1938 Charter of the City of Cincinnati](https://catalog.hathitrust.org/Record/001754258). See also [here](https://web.archive.org/web/20081118104049/http://www.fairvote.org/media/1993countmanual.pdf). | | ✓ |
| Dáil Éireann STV | Rules from the [*Electoral Act 1992* (Ireland)](http://www.irishstatutebook.ie/eli/1992/act/23/enacted/en/print), using stratified random sample transfers. | [E4] [E7] | ✓ | | Dáil Éireann STV | Rules from the [*Electoral Act 1992* (Ireland)](http://www.irishstatutebook.ie/eli/1992/act/23/enacted/en/print), using stratified random sample transfers. | [E4] [E7] | ✓ |

View File

@ -44,6 +44,7 @@
<option value="senate">Australian Senate STV</option> <option value="senate">Australian Senate STV</option>
<option value="act">Australian Capital Territory STV</option> <option value="act">Australian Capital Territory STV</option>
<option value="nswlg">NSW Local Government STV</option> <option value="nswlg">NSW Local Government STV</option>
<option value="viclc">Victorian Legislative Council STV</option>
<option value="wa">Western Australia STV</option> <option value="wa">Western Australia STV</option>
<option value="meeknz">Meek STV (New Zealand)</option> <option value="meeknz">Meek STV (New Zealand)</option>
<option value="minneapolis">Minneapolis STV</option> <option value="minneapolis">Minneapolis STV</option>

View File

@ -164,6 +164,29 @@ function changePreset() {
document.getElementById('selPapers').value = 'both'; document.getElementById('selPapers').value = 'both';
document.getElementById('selExclusion').value = 'by_value'; document.getElementById('selExclusion').value = 'by_value';
document.getElementById('selTies').value = 'backwards,random'; document.getElementById('selTies').value = 'backwards,random';
} else if (document.getElementById('selPreset').value === 'viclc') {
document.getElementById('selQuotaCriterion').value = 'geq';
document.getElementById('selQuota').value = 'droop';
document.getElementById('selQuotaMode').value = 'static';
document.getElementById('chkBulkElection').checked = true;
document.getElementById('chkBulkExclusion').checked = false;
document.getElementById('chkDeferSurpluses').checked = false;
document.getElementById('chkImmediateElect').checked = true;
document.getElementById('txtMinThreshold').value = '0';
document.getElementById('selNumbers').value = 'rational';
document.getElementById('txtPPDP').value = '0';
document.getElementById('chkRoundQuota').checked = true;
document.getElementById('txtRoundQuota').value = '0';
document.getElementById('chkRoundVotes').checked = true;
document.getElementById('txtRoundVotes').value = '0';
document.getElementById('chkRoundSFs').checked = false;
document.getElementById('chkRoundValues').checked = false;
document.getElementById('selSumTransfers').value = 'single_step';
document.getElementById('selSurplus').value = 'by_order';
document.getElementById('selMethod').value = 'uig';
document.getElementById('selPapers').value = 'both';
document.getElementById('selExclusion').value = 'first_prefs_then_by_value';
document.getElementById('selTies').value = 'backwards,random';
} else if (document.getElementById('selPreset').value === 'wa') { } else if (document.getElementById('selPreset').value === 'wa') {
document.getElementById('selQuotaCriterion').value = 'geq'; document.getElementById('selQuotaCriterion').value = 'geq';
document.getElementById('selQuota').value = 'droop'; document.getElementById('selQuota').value = 'droop';

39468
tests/data/SE2022_NMET.blt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,62 @@
Stage,1,,2,,3,,4,,5,,6,,7,,10,,11,,12,,13,,14,,15,,43,,48,,230,,231,,232,,233,,234,,235,,236,,254,
Comment,First preferences,,"Surplus of WATT, Sheena",,"Surplus of MULHOLLAND, Evan",,"Surplus of RATNAM, Samantha",,"Exclusion of BRASSETT, Marcella",,"Exclusion of BRASSETT, Marcella",,"Exclusion of BRASSETT, Marcella",,"Exclusion of YOLCU, Berke",,"Exclusion of PULLEN, Linda",,"Exclusion of PULLEN, Linda",,"Exclusion of PULLEN, Linda",,"Exclusion of PULLEN, Linda",,"Exclusion of PULLEN, Linda",,"Exclusion of CONSIDINE, Matthew",,"Exclusion of MCCAMISH, Scott",,"Exclusion of MORAN, Kelly",,"Exclusion of GUEST, Owen",,"Exclusion of GUEST, Owen",,"Exclusion of GUEST, Owen",,"Exclusion of GUEST, Owen",,"Exclusion of GUEST, Owen",,"Surplus of ERDOGAN, Enver",,"Exclusion of SMALL, Jerome",
"HIRMIZ, Imad",11326,H,11332,H,11340,H,11340,H,11340,H,11340,H,11340,H,11340,H,11340,H,11340,H,11340,H,11340,H,11340,H,11346,H,11347,H,21199,H,21252,H,25368,H,25368,H,25391,H,25391,H,25391,H,0,EX
"LOWRY, Denise",320,H,320,H,321,H,321,H,321,H,321,H,321,H,322,H,322,H,322,H,322,H,322,H,322,H,325,H,327,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"MULHOLLAND, Evan",83448,EL,83448,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL
"GUEST, Owen",692,H,698,H,8639,H,8639,H,8639,H,8639,H,8639,H,8640,H,8642,H,8642,H,8642,H,8642,H,8642,H,8645,H,8648,H,15707,H,,EX,,EX,,EX,,EX,0,EX,0,EX,0,EX
"STAKER-GUNN, Tim",209,H,209,H,214,H,214,H,214,H,214,H,214,H,214,H,215,H,215,H,215,H,215,H,215,H,219,H,220,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"TEMPANY, Melinda",598,H,599,H,603,H,603,H,603,H,603,H,603,H,603,H,603,H,603,H,603,H,603,H,603,H,609,H,609,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"QADEER, Hafiz",412,H,414,H,417,H,417,H,417,H,417,H,417,H,417,H,417,H,417,H,417,H,417,H,417,H,420,H,421,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"DIAMANTOPOULOS, Georgia",1835,H,1837,H,1843,H,1843,H,1843,H,1843,H,1843,H,1843,H,1844,H,1844,H,1844,H,1844,H,1844,H,1845,H,1848,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"RACO, Francesco",129,H,131,H,134,H,134,H,134,H,134,H,134,H,134,H,134,H,134,H,134,H,134,H,134,H,137,H,140,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"ROS, Amita",1250,H,1252,H,1259,H,1259,H,1259,H,1259,H,1259,H,1259,H,1259,H,1259,H,1259,H,1259,H,1259,H,1261,H,1263,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"SINGH, Pushpinder",109,H,110,H,112,H,112,H,112,H,112,H,112,H,112,H,113,H,113,H,113,H,113,H,113,H,114,H,116,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"BHINDER, Vikram",97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,97,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"MORAN, Kelly",5510,H,5511,H,5521,H,5521,H,5521,H,5521,H,5521,H,5521,H,5523,H,5523,H,5523,H,5523,H,5523,H,5530,H,5557,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"MCCAMISH, Scott",91,H,91,H,93,H,93,H,93,H,93,H,93,H,93,H,94,H,94,H,94,H,94,H,94,H,97,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"RICHARDSON, Damien",4829,H,4830,H,4835,H,4835,H,4835,H,4835,H,4835,H,4836,H,4838,H,4838,H,4838,H,4838,H,4838,H,4846,H,4853,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"STODDART, Cameron",108,H,108,H,108,H,108,H,108,H,108,H,108,H,109,H,109,H,109,H,109,H,109,H,109,H,115,H,120,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"SILVERBERG, Paul",5424,H,5429,H,5438,H,5438,H,5438,H,5438,H,5438,H,5438,H,5440,H,5440,H,5440,H,5440,H,5440,H,5440,H,5447,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"VERSTEEGEN, Rachel",188,H,189,H,190,H,190,H,191,H,191,H,191,H,191,H,192,H,192,H,192,H,192,H,192,H,198,H,201,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"PHILPOTT-SMART, Simone",4671,H,4681,H,4685,H,4686,H,4686,H,4686,H,4686,H,4686,H,4686,H,4686,H,4686,H,4686,H,4686,H,4693,H,4696,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"STANFIELD, Thomas",102,H,103,H,104,H,104,H,104,H,104,H,104,H,104,H,105,H,105,H,105,H,105,H,105,H,113,H,119,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"PRIDHAM, Alison",1431,H,1436,H,1436,H,1438,H,1438,H,1438,H,1438,H,1438,H,1440,H,1440,H,1440,H,1440,H,1440,H,1463,H,1463,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"BUDGEON, Daryl",49,H,49,H,49,H,49,H,49,H,49,H,49,H,49,H,51,H,51,H,51,H,51,H,51,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"TAGGART, Lisa",1584,H,1586,H,1586,H,1586,H,1586,H,1586,H,1586,H,1586,H,1588,H,1588,H,1588,H,1588,H,1588,H,1608,H,1611,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"BRODIE, Gabrielle",58,H,59,H,59,H,59,H,59,H,59,H,59,H,59,H,64,H,64,H,64,H,64,H,64,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"GRUTZNER, Pauline",1543,H,1545,H,1545,H,1545,H,1545,H,1545,H,1545,H,1545,H,1550,H,1550,H,1550,H,1550,H,1550,H,1558,H,1559,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"PULLEN, Linda",39,H,39,H,39,H,39,H,39,H,39,H,39,H,40,H,,EX,,EX,,EX,,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"SOMYUREK, Adem",21510,H,21522,H,21525,H,21528,H,21528,H,21528,H,21528,H,21529,H,21529,H,21529,H,21529,H,21529,H,21529,H,21532,H,21532,H,41543,H,41595,H,43054,H,43054,H,50826,H,50826,H,50826,H,73381,H
"de WIT, Cary",174,H,176,H,176,H,176,H,176,H,176,H,176,H,176,H,176,H,176,H,176,H,176,H,176,H,177,H,177,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"HORSFALL, Leah",6166,H,6202,H,6202,H,6213,H,6214,H,6214,H,6214,H,6214,H,6217,H,6218,H,6218,H,6218,H,6218,H,6222,H,6225,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"POON, Bruce",154,H,155,H,155,H,155,H,155,H,155,H,155,H,155,H,155,H,155,H,155,H,155,H,155,H,156,H,157,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"RATNAM, Samantha",81014,EL,81014,EL,81014,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL
"KENNEDY, Esther",850,H,888,H,888,H,6182,H,6182,H,6182,H,6182,H,6182,H,6182,H,6182,H,6182,H,6182,H,6182,H,6193,H,6194,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"JEFFORD, Sarah",863,H,879,H,879,H,931,H,931,H,931,H,931,H,931,H,932,H,932,H,932,H,932,H,932,H,940,H,940,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"LEACH, Michael",685,H,699,H,699,H,722,H,723,H,723,H,723,H,723,H,723,H,723,H,723,H,723,H,723,H,725,H,725,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"MORRISON, Kenna",715,H,724,H,724,H,765,H,765,H,765,H,765,H,765,H,765,H,765,H,765,H,765,H,765,H,773,H,773,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"CONSTANTINOU, Ethan",3413,H,3417,H,3418,H,3418,H,3418,H,3418,H,3418,H,3418,H,3418,H,3418,H,3418,H,3418,H,3418,H,3464,H,3465,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"PODGER, Ben",57,H,58,H,58,H,58,H,58,H,58,H,58,H,59,H,59,H,59,H,59,H,59,H,59,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"WATT, Sheena",148830,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL,75406,EL
"ERDOGAN, Enver",445,H,72685,H,72685,H,72691,H,72691,H,72691,H,72691,H,72694,H,72695,H,72695,H,72695,H,72695,H,72695,H,72697,H,72698,H,75389,H,75404,H,75448,EL,75448,EL,75448,EL,75448,EL,75406,EL,75406,EL
"BYERS, Susie",734,H,976,H,976,H,980,H,980,H,980,H,980,H,980,H,980,H,980,H,980,H,980,H,980,H,988,H,989,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"GAUL, Chloe",709,H,1011,H,1011,H,1018,H,1018,H,1018,H,1018,H,1019,H,1019,H,1019,H,1019,H,1019,H,1019,H,1025,H,1025,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"ALJALIL, Ramy",344,H,362,H,362,H,363,H,363,H,363,H,363,H,363,H,363,H,363,H,363,H,363,H,363,H,364,H,364,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"FREEMAN, Nickee",1146,H,1150,H,1151,H,1151,H,1151,H,1151,H,1151,H,1152,H,1152,H,1152,H,1152,H,1152,H,1152,H,1179,H,1180,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"CASHION, Jake",40,H,40,H,40,H,40,H,40,H,40,H,40,H,41,H,41,H,41,H,41,H,41,H,41,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"PATTEN, Fiona",16117,H,16413,H,16415,H,16506,H,16514,H,16514,H,16514,H,16514,H,16514,H,16514,H,16514,H,16514,H,16514,H,16541,H,16542,H,23244,H,23303,H,23357,H,23358,H,23370,H,23371,H,23411,H,61557,H
"RYAN, Judy",74,H,75,H,75,H,75,H,76,H,76,H,76,H,76,H,76,H,76,H,76,H,76,H,76,H,106,H,107,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"CLARK, Jenn",53,H,53,H,53,H,53,H,53,H,53,H,53,H,53,H,53,H,53,H,53,H,53,H,53,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"BRASSETT, Marcella",17,H,17,H,17,H,17,H,,EX,,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"JAGIELSKI, Tali Siani",61,H,61,H,61,H,61,H,64,H,64,H,64,H,64,H,64,H,64,H,64,H,64,H,64,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"YESILAGAC, Hatice",2678,H,2678,H,2678,H,2678,H,2678,H,2678,H,2678,H,2692,H,2692,H,2692,H,2692,H,2692,H,2692,H,2698,H,2699,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"YOLCU, Berke",33,H,33,H,33,H,33,H,33,H,33,H,33,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"HALE, Andrew",13508,H,13535,H,13535,H,13542,H,13542,H,13542,H,13542,H,13543,H,13544,H,13544,H,13544,H,13544,H,13544,H,13554,H,13554,H,15826,H,15856,H,15909,H,15909,H,15915,H,15915,H,15915,H,0,EX
"THOMPSON, Renee",314,H,323,H,323,H,326,H,327,H,327,H,327,H,329,H,330,H,330,H,330,H,330,H,330,H,342,H,344,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"DAVIS, Jessica",4175,H,4175,H,4180,H,4180,H,4180,H,4180,H,4180,H,4181,H,4181,H,4181,H,4181,H,4181,H,4181,H,4227,H,4227,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"CONSIDINE, Matthew",76,H,77,H,77,H,77,H,77,H,77,H,77,H,78,H,78,H,78,H,78,H,78,H,78,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"SMALL, Jerome",20298,H,20357,H,20357,H,20393,H,20394,H,20394,H,20394,H,20395,H,20397,H,20397,H,20397,H,20397,H,20397,H,20407,H,20408,H,27988,H,27999,H,28020,H,28020,H,28022,H,28022,H,28022,H,0,EX
"LEWIS, Cathy",1007,H,1012,H,1012,H,1018,H,1018,H,1018,H,1018,H,1018,H,1018,H,1018,H,1018,H,1018,H,1018,H,1026,H,1026,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
"MANCELL, Colin John",118,H,118,H,118,H,118,H,118,H,118,H,118,H,118,H,118,H,118,H,118,H,118,H,118,H,120,H,120,H,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX,0,EX
Loss by fraction,0,,36,,54,,74,,,,,,74,,74,,,,,,,,,,74,,77,,79,,161,,,,,,,,,,150,,151,,114,
Exhausted,0,,0,,0,,0,,0,,0,,0,,0,,0,,0,,0,,0,,0,,0,,0,,5155,,5627,,6929,,6941,,7086,,7089,,7090,,15754,
1 Stage 1 2 3 4 5 6 7 10 11 12 13 14 15 43 48 230 231 232 233 234 235 236 254
2 Comment First preferences Surplus of WATT, Sheena Surplus of MULHOLLAND, Evan Surplus of RATNAM, Samantha Exclusion of BRASSETT, Marcella Exclusion of BRASSETT, Marcella Exclusion of BRASSETT, Marcella Exclusion of YOLCU, Berke Exclusion of PULLEN, Linda Exclusion of PULLEN, Linda Exclusion of PULLEN, Linda Exclusion of PULLEN, Linda Exclusion of PULLEN, Linda Exclusion of CONSIDINE, Matthew Exclusion of MCCAMISH, Scott Exclusion of MORAN, Kelly Exclusion of GUEST, Owen Exclusion of GUEST, Owen Exclusion of GUEST, Owen Exclusion of GUEST, Owen Exclusion of GUEST, Owen Surplus of ERDOGAN, Enver Exclusion of SMALL, Jerome
3 HIRMIZ, Imad 11326 H 11332 H 11340 H 11340 H 11340 H 11340 H 11340 H 11340 H 11340 H 11340 H 11340 H 11340 H 11340 H 11346 H 11347 H 21199 H 21252 H 25368 H 25368 H 25391 H 25391 H 25391 H 0 EX
4 LOWRY, Denise 320 H 320 H 321 H 321 H 321 H 321 H 321 H 322 H 322 H 322 H 322 H 322 H 322 H 325 H 327 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
5 MULHOLLAND, Evan 83448 EL 83448 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL
6 GUEST, Owen 692 H 698 H 8639 H 8639 H 8639 H 8639 H 8639 H 8640 H 8642 H 8642 H 8642 H 8642 H 8642 H 8645 H 8648 H 15707 H EX EX EX EX 0 EX 0 EX 0 EX
7 STAKER-GUNN, Tim 209 H 209 H 214 H 214 H 214 H 214 H 214 H 214 H 215 H 215 H 215 H 215 H 215 H 219 H 220 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
8 TEMPANY, Melinda 598 H 599 H 603 H 603 H 603 H 603 H 603 H 603 H 603 H 603 H 603 H 603 H 603 H 609 H 609 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
9 QADEER, Hafiz 412 H 414 H 417 H 417 H 417 H 417 H 417 H 417 H 417 H 417 H 417 H 417 H 417 H 420 H 421 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
10 DIAMANTOPOULOS, Georgia 1835 H 1837 H 1843 H 1843 H 1843 H 1843 H 1843 H 1843 H 1844 H 1844 H 1844 H 1844 H 1844 H 1845 H 1848 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
11 RACO, Francesco 129 H 131 H 134 H 134 H 134 H 134 H 134 H 134 H 134 H 134 H 134 H 134 H 134 H 137 H 140 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
12 ROS, Amita 1250 H 1252 H 1259 H 1259 H 1259 H 1259 H 1259 H 1259 H 1259 H 1259 H 1259 H 1259 H 1259 H 1261 H 1263 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
13 SINGH, Pushpinder 109 H 110 H 112 H 112 H 112 H 112 H 112 H 112 H 113 H 113 H 113 H 113 H 113 H 114 H 116 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
14 BHINDER, Vikram 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 97 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
15 MORAN, Kelly 5510 H 5511 H 5521 H 5521 H 5521 H 5521 H 5521 H 5521 H 5523 H 5523 H 5523 H 5523 H 5523 H 5530 H 5557 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
16 MCCAMISH, Scott 91 H 91 H 93 H 93 H 93 H 93 H 93 H 93 H 94 H 94 H 94 H 94 H 94 H 97 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
17 RICHARDSON, Damien 4829 H 4830 H 4835 H 4835 H 4835 H 4835 H 4835 H 4836 H 4838 H 4838 H 4838 H 4838 H 4838 H 4846 H 4853 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
18 STODDART, Cameron 108 H 108 H 108 H 108 H 108 H 108 H 108 H 109 H 109 H 109 H 109 H 109 H 109 H 115 H 120 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
19 SILVERBERG, Paul 5424 H 5429 H 5438 H 5438 H 5438 H 5438 H 5438 H 5438 H 5440 H 5440 H 5440 H 5440 H 5440 H 5440 H 5447 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
20 VERSTEEGEN, Rachel 188 H 189 H 190 H 190 H 191 H 191 H 191 H 191 H 192 H 192 H 192 H 192 H 192 H 198 H 201 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
21 PHILPOTT-SMART, Simone 4671 H 4681 H 4685 H 4686 H 4686 H 4686 H 4686 H 4686 H 4686 H 4686 H 4686 H 4686 H 4686 H 4693 H 4696 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
22 STANFIELD, Thomas 102 H 103 H 104 H 104 H 104 H 104 H 104 H 104 H 105 H 105 H 105 H 105 H 105 H 113 H 119 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
23 PRIDHAM, Alison 1431 H 1436 H 1436 H 1438 H 1438 H 1438 H 1438 H 1438 H 1440 H 1440 H 1440 H 1440 H 1440 H 1463 H 1463 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
24 BUDGEON, Daryl 49 H 49 H 49 H 49 H 49 H 49 H 49 H 49 H 51 H 51 H 51 H 51 H 51 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
25 TAGGART, Lisa 1584 H 1586 H 1586 H 1586 H 1586 H 1586 H 1586 H 1586 H 1588 H 1588 H 1588 H 1588 H 1588 H 1608 H 1611 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
26 BRODIE, Gabrielle 58 H 59 H 59 H 59 H 59 H 59 H 59 H 59 H 64 H 64 H 64 H 64 H 64 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
27 GRUTZNER, Pauline 1543 H 1545 H 1545 H 1545 H 1545 H 1545 H 1545 H 1545 H 1550 H 1550 H 1550 H 1550 H 1550 H 1558 H 1559 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
28 PULLEN, Linda 39 H 39 H 39 H 39 H 39 H 39 H 39 H 40 H EX EX EX EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
29 SOMYUREK, Adem 21510 H 21522 H 21525 H 21528 H 21528 H 21528 H 21528 H 21529 H 21529 H 21529 H 21529 H 21529 H 21529 H 21532 H 21532 H 41543 H 41595 H 43054 H 43054 H 50826 H 50826 H 50826 H 73381 H
30 de WIT, Cary 174 H 176 H 176 H 176 H 176 H 176 H 176 H 176 H 176 H 176 H 176 H 176 H 176 H 177 H 177 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
31 HORSFALL, Leah 6166 H 6202 H 6202 H 6213 H 6214 H 6214 H 6214 H 6214 H 6217 H 6218 H 6218 H 6218 H 6218 H 6222 H 6225 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
32 POON, Bruce 154 H 155 H 155 H 155 H 155 H 155 H 155 H 155 H 155 H 155 H 155 H 155 H 155 H 156 H 157 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
33 RATNAM, Samantha 81014 EL 81014 EL 81014 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL
34 KENNEDY, Esther 850 H 888 H 888 H 6182 H 6182 H 6182 H 6182 H 6182 H 6182 H 6182 H 6182 H 6182 H 6182 H 6193 H 6194 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
35 JEFFORD, Sarah 863 H 879 H 879 H 931 H 931 H 931 H 931 H 931 H 932 H 932 H 932 H 932 H 932 H 940 H 940 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
36 LEACH, Michael 685 H 699 H 699 H 722 H 723 H 723 H 723 H 723 H 723 H 723 H 723 H 723 H 723 H 725 H 725 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
37 MORRISON, Kenna 715 H 724 H 724 H 765 H 765 H 765 H 765 H 765 H 765 H 765 H 765 H 765 H 765 H 773 H 773 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
38 CONSTANTINOU, Ethan 3413 H 3417 H 3418 H 3418 H 3418 H 3418 H 3418 H 3418 H 3418 H 3418 H 3418 H 3418 H 3418 H 3464 H 3465 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
39 PODGER, Ben 57 H 58 H 58 H 58 H 58 H 58 H 58 H 59 H 59 H 59 H 59 H 59 H 59 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
40 WATT, Sheena 148830 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL 75406 EL
41 ERDOGAN, Enver 445 H 72685 H 72685 H 72691 H 72691 H 72691 H 72691 H 72694 H 72695 H 72695 H 72695 H 72695 H 72695 H 72697 H 72698 H 75389 H 75404 H 75448 EL 75448 EL 75448 EL 75448 EL 75406 EL 75406 EL
42 BYERS, Susie 734 H 976 H 976 H 980 H 980 H 980 H 980 H 980 H 980 H 980 H 980 H 980 H 980 H 988 H 989 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
43 GAUL, Chloe 709 H 1011 H 1011 H 1018 H 1018 H 1018 H 1018 H 1019 H 1019 H 1019 H 1019 H 1019 H 1019 H 1025 H 1025 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
44 ALJALIL, Ramy 344 H 362 H 362 H 363 H 363 H 363 H 363 H 363 H 363 H 363 H 363 H 363 H 363 H 364 H 364 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
45 FREEMAN, Nickee 1146 H 1150 H 1151 H 1151 H 1151 H 1151 H 1151 H 1152 H 1152 H 1152 H 1152 H 1152 H 1152 H 1179 H 1180 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
46 CASHION, Jake 40 H 40 H 40 H 40 H 40 H 40 H 40 H 41 H 41 H 41 H 41 H 41 H 41 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
47 PATTEN, Fiona 16117 H 16413 H 16415 H 16506 H 16514 H 16514 H 16514 H 16514 H 16514 H 16514 H 16514 H 16514 H 16514 H 16541 H 16542 H 23244 H 23303 H 23357 H 23358 H 23370 H 23371 H 23411 H 61557 H
48 RYAN, Judy 74 H 75 H 75 H 75 H 76 H 76 H 76 H 76 H 76 H 76 H 76 H 76 H 76 H 106 H 107 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
49 CLARK, Jenn 53 H 53 H 53 H 53 H 53 H 53 H 53 H 53 H 53 H 53 H 53 H 53 H 53 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
50 BRASSETT, Marcella 17 H 17 H 17 H 17 H EX EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
51 JAGIELSKI, Tali Siani 61 H 61 H 61 H 61 H 64 H 64 H 64 H 64 H 64 H 64 H 64 H 64 H 64 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
52 YESILAGAC, Hatice 2678 H 2678 H 2678 H 2678 H 2678 H 2678 H 2678 H 2692 H 2692 H 2692 H 2692 H 2692 H 2692 H 2698 H 2699 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
53 YOLCU, Berke 33 H 33 H 33 H 33 H 33 H 33 H 33 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
54 HALE, Andrew 13508 H 13535 H 13535 H 13542 H 13542 H 13542 H 13542 H 13543 H 13544 H 13544 H 13544 H 13544 H 13544 H 13554 H 13554 H 15826 H 15856 H 15909 H 15909 H 15915 H 15915 H 15915 H 0 EX
55 THOMPSON, Renee 314 H 323 H 323 H 326 H 327 H 327 H 327 H 329 H 330 H 330 H 330 H 330 H 330 H 342 H 344 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
56 DAVIS, Jessica 4175 H 4175 H 4180 H 4180 H 4180 H 4180 H 4180 H 4181 H 4181 H 4181 H 4181 H 4181 H 4181 H 4227 H 4227 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
57 CONSIDINE, Matthew 76 H 77 H 77 H 77 H 77 H 77 H 77 H 78 H 78 H 78 H 78 H 78 H 78 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
58 SMALL, Jerome 20298 H 20357 H 20357 H 20393 H 20394 H 20394 H 20394 H 20395 H 20397 H 20397 H 20397 H 20397 H 20397 H 20407 H 20408 H 27988 H 27999 H 28020 H 28020 H 28022 H 28022 H 28022 H 0 EX
59 LEWIS, Cathy 1007 H 1012 H 1012 H 1018 H 1018 H 1018 H 1018 H 1018 H 1018 H 1018 H 1018 H 1018 H 1018 H 1026 H 1026 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
60 MANCELL, Colin John 118 H 118 H 118 H 118 H 118 H 118 H 118 H 118 H 118 H 118 H 118 H 118 H 118 H 120 H 120 H 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX 0 EX
61 Loss by fraction 0 36 54 74 74 74 74 77 79 161 150 151 114
62 Exhausted 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5155 5627 6929 6941 7086 7089 7090 15754

BIN
tests/data/SE2022_NMET.ods Normal file

Binary file not shown.

View File

@ -32,4 +32,5 @@ mod nswlg;
mod prsa; mod prsa;
mod scotland; mod scotland;
mod special_cases; mod special_cases;
mod vec;
mod vs_prsa_count; mod vs_prsa_count;

40
tests/tests_impl/vec.rs Normal file
View File

@ -0,0 +1,40 @@
/* OpenTally: Open-source election vote counting
* Copyright © 20212023 Lee Yingtong Li (RunasSudo)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use crate::utils;
use opentally::numbers::Rational;
use opentally::stv;
use opentally::ties::TieStrategy;
#[test]
fn vec_nmet22_rational() {
let stv_opts = stv::STVOptionsBuilder::default()
.round_votes(Some(0))
.round_quota(Some(0))
.quota_criterion(stv::QuotaCriterion::GreaterOrEqual)
.ties(vec![TieStrategy::Backwards])
.surplus(stv::SurplusMethod::UIG)
.surplus_order(stv::SurplusOrder::ByOrder)
.exclusion(stv::ExclusionMethod::FirstPreferencesThenByValue)
.early_bulk_elect(false)
.build().unwrap();
assert_eq!(stv_opts.describe::<Rational>(), "--round-votes 0 --round-quota 0 --quota-criterion geq --ties backwards --surplus uig --surplus-order by_order --exclusion first_prefs_then_by_value --no-early-bulk-elect");
utils::read_validate_election::<Rational>("tests/data/SE2022_NMET.csv", "tests/data/SE2022_NMET.blt", stv_opts, None, &["lbf", "exhausted"]);
}