ABIF: Difference between revisions
Content added Content deleted
(Moving the test cases to GitHub) |
(Cleaned up formatting, and finished linking to current test cases. This will be an informative list, pointing to the normative copy on GitHub.) |
||
Line 7: | Line 7: | ||
The normative set of test cases are on GitHub, and we'll be expanding them there. Among the things we want to test for: |
The normative set of test cases are on GitHub, and we'll be expanding them there. Among the things we want to test for: |
||
* Unordered scores on a bundle line |
* Case #1: Unordered scores on a bundle line.<ref>https://github.com/electorama/abif/blob/main/testfiles/test001.abif</ref> |
||
* Unscored (but ranked) candidates delimited only by ">" and "=" |
*Case #2: Unscored (but ranked) candidates delimited only by ">" and "=".<ref>https://github.com/electorama/abif/blob/main/testfiles/test002.abif</ref> |
||
* Ranked ''and'' rated candidates |
*Case #3: Ranked ''and'' rated candidates.<ref>https://github.com/electorama/abif/blob/main/testfiles/test003.abif</ref> |
||
* Bracketed, inlined candidate tokens with many "high UTF-8" characters, like "ñ", "í", "á", "蘇","業" |
*Case #4: Bracketed, inlined candidate tokens with many "high UTF-8" characters, like "ñ", "í", "á", "蘇","業".<ref>https://github.com/electorama/abif/blob/main/testfiles/test004.abif</ref> |
||
* Declared candidate tokens |
*Case #5: Declared candidate tokens, with unordered scores.<ref>https://github.com/electorama/abif/blob/main/testfiles/test005.abif</ref> |
||
* Declared candidate tokens, |
*Case #6: Declared candidate tokens, ranked and scored.<ref>https://github.com/electorama/abif/blob/main/testfiles/test006.abif</ref> |
||
*Case #7: Bracketed candidate tokens (declared), ranked with no score.<ref>https://github.com/electorama/abif/blob/main/testfiles/test007.abif</ref> |
|||
* Test case 6 |
|||
* |
*Case #8: Bracketed candidate tokens (mixed), ranked with no score and most extra whitespace removed.<ref>https://github.com/electorama/abif/blob/main/testfiles/test008.abif</ref> |
||
⚫ | |||
* Test case 7 |
|||
⚫ | |||
** Bracketed candidate tokens (declared). Ranked with no score. |
|||
⚫ | |||
* Test case 8 |
|||
** Bracketed candidate tokens (mixed). Ranked with no score. Most extra whitespace removed. |
|||
* Test case 9 |
|||
⚫ | |||
⚫ | |||
⚫ |
Revision as of 20:42, 15 June 2021
ABIF stands for "aggregated ballot information format"[1]. As of May 2021, it has been undergoing discussion on the /r/EndFPTP subreddit and on the EM-list.[2][3][4]
ABIF uses the UTF-8 character encoding.
Test cases
The normative set of test cases are on GitHub, and we'll be expanding them there. Among the things we want to test for:
- Case #1: Unordered scores on a bundle line.[5]
- Case #2: Unscored (but ranked) candidates delimited only by ">" and "=".[6]
- Case #3: Ranked and rated candidates.[7]
- Case #4: Bracketed, inlined candidate tokens with many "high UTF-8" characters, like "ñ", "í", "á", "蘇","業".[8]
- Case #5: Declared candidate tokens, with unordered scores.[9]
- Case #6: Declared candidate tokens, ranked and scored.[10]
- Case #7: Bracketed candidate tokens (declared), ranked with no score.[11]
- Case #8: Bracketed candidate tokens (mixed), ranked with no score and most extra whitespace removed.[12]
- Case #9: Asterisk-delimited multiplier, suggested by Jan Šimbera in May 2020.[13][14]
Footnotes
- ↑ https://github.com/electorama/abif/issues/2
- ↑ http://lists.electorama.com/pipermail/election-methods-electorama.com/2021-May/002788.html
- ↑ https://www.reddit.com/r/EndFPTP/comments/nkm2cd/standardizing_cardinal_ballot_notation/gzls6pj/
- ↑ http://lists.electorama.com/pipermail/election-methods-electorama.com/2021-May/002789.html
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test001.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test002.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test003.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test004.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test005.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test006.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test007.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test008.abif
- ↑ https://github.com/electorama/abif/blob/main/testfiles/test009.abif
- ↑ http://lists.electorama.com/pipermail/election-methods-electorama.com/2021-June/002793.html