Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UWI test #440

Merged
merged 3 commits into from
Mar 26, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -451,4 +451,10 @@ void tiebreakPreviousRoundCountsThenRandomTest() {
void treatBlankAsUndeclaredWriteInTest() {
runTabulationTest("test_set_treat_blank_as_undeclared_write_in");
}

@Test
@DisplayName("undeclared write-in (UWI) test")
void uwiTest() {
runTabulationTest("uwi_test");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to veto this if it doesn't make sense, but could we get a more descriptive name for this, since we have a couple other UWI tests? If it's a pain to change the file names, even just the DisplayName would probably help.

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"tabulatorVersion" : "TEST",
"outputSettings" : {
"contestName" : "UWI Test",
"outputDirectory" : "output",
"contestDate" : "",
"contestJurisdiction" : "",
"contestOffice" : "",
"tabulateByPrecinct" : false,
"generateCdfJson" : false
},
"cvrFileSources" : [ {
"filePath" : "uwi_test_cvr.xlsx",
"firstVoteColumnIndex" : "2",
"firstVoteRowIndex" : "2",
"idColumnIndex" : "",
"precinctColumnIndex" : "",
"provider" : ""
} ],
"candidates" : [ {
"name" : "A",
"code" : "",
"excluded" : false
}, {
"name" : "B",
"code" : "",
"excluded" : false
} ],
"rules" : {
"tiebreakMode" : "usePermutationInConfig",
"overvoteRule" : "exhaustImmediately",
"winnerElectionMode" : "standard",
"randomSeed" : "",
"numberOfWinners" : "1",
"multiSeatBottomsUpPercentageThreshold" : "",
"decimalPlacesForVoteArithmetic" : "4",
"minimumVoteThreshold" : "0",
"maxSkippedRanksAllowed" : "1",
"maxRankingsAllowed" : "max",
"nonIntegerWinningThreshold" : false,
"hareQuota" : false,
"batchElimination" : false,
"exhaustOnDuplicateCandidate" : false,
"treatBlankAsUndeclaredWriteIn" : false,
"overvoteLabel" : "",
"undervoteLabel" : "",
"undeclaredWriteInLabel" : "UWI",
"rulesDescription" : ""
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"config" : {
"contest" : "UWI Test",
"date" : "",
"jurisdiction" : "",
"office" : "",
"threshold" : "3"
},
"results" : [ {
"round" : 1,
"tally" : {
"A" : "3",
"B" : "1",
"UWI" : "5"
},
"tallyResults" : [ {
"eliminated" : "UWI",
"transfers" : {
"exhausted" : "5"
}
} ]
}, {
"round" : 2,
"tally" : {
"A" : "3",
"B" : "1"
},
"tallyResults" : [ {
"elected" : "A",
"transfers" : { }
} ]
} ]
}