Skip to content

Commit

Permalink
Issue 703: add ES&S conversion test
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jun 19, 2023
1 parent bcd224c commit a147699
Show file tree
Hide file tree
Showing 7 changed files with 404 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/test/java/network/brightspots/rcv/TabulatorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ void convertToCdfFromDominion() {
runConvertToCdfTest("convert_to_cdf_from_dominion");
}

@Test
@DisplayName("Test Convert to CDF works for ESS")
void convertToCdfFromEss() {
runConvertToCdfTest("convert_to_cdf_from_ess", "simple_ess");
}

@Test
@DisplayName("aliases (CDF JSON format)")
void aliasesJson() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"tabulatorVersion": "TEST",
"outputSettings": {
"contestName": "Tiebreak test",
"outputDirectory": "output",
"contestDate": "2017-12-03",
"contestJurisdiction": "Funkytown, USA",
"contestOffice": "Sergeant-at-Arms",
"tabulateByPrecinct": false,
"generateCdfJson": false
},
"cvrFileSources": [
{
"filePath" : "simple_ess_cvr.xlsx",
"firstVoteColumnIndex" : "2",
"firstVoteRowIndex" : "2",
"idColumnIndex" : "",
"precinctColumnIndex" : "",
"provider" : "ess",
"treatBlankAsUndeclaredWriteIn": false,
"overvoteLabel": "overvote",
"undervoteLabel": "undervote",
"undeclaredWriteInLabel": ""
} ],
"candidates" : [ {
"name" : "Mookie Blaylock",
"code" : "",
"excluded" : false
}, {
"name" : "Yinka Dare",
"code" : "",
"excluded" : false
}, {
"name" : "Sedale Threatt",
"code" : "",
"excluded" : false
}, {
"name" : "George Gervin",
"code" : "",
"excluded" : false
} ],
"rules" : {
"tiebreakMode": "stopCountingAndAsk",
"overvoteRule": "alwaysSkipToNextRank",
"winnerElectionMode": "singleWinnerMajority",
"randomSeed": "",
"numberOfWinners": "1",
"decimalPlacesForVoteArithmetic": "4",
"minimumVoteThreshold": "0",
"maxSkippedRanksAllowed": "0",
"maxRankingsAllowed": "3",
"nonIntegerWinningThreshold": false,
"hareQuota": false,
"batchElimination": true,
"exhaustOnDuplicateCandidate": false,
"rulesDescription": "Doyle Rules"
}
}
Loading

0 comments on commit a147699

Please sign in to comment.