Skip to content

Commit

Permalink
CEF parser: add invalid example 5 from CEF spec as test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed Sep 15, 2023
1 parent 7ef8db5 commit d7694ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ cef-doc-invalid3.cvotes:
error: "^Syntax error at position 12, expected EMPTY_RANKING INT WORD"
cef-doc-invalid4.cvotes:
error: "^duplicate choice not allowed \\(Candidate A\\) at position 39, expected EMPTY_RANKING INT WORD"
cef-doc-invalid5.cvotes:
error: "^weight not permitted without weight_allowed flag"
cef-doc-invalid6.cvotes:
error: "^Syntax error at position 43, found EMPTY_RANKING '/EMPTY_RANKING/', expected INT WORD"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# My beautiful election
# (CEF example intended as invalid but works in PrefVote because parser handles */^ in any order
#/Candidates: Candidate A;Candidate B;Candidate C

Candidate A > Candidate B > Candidate A * 8 ^7

0 comments on commit d7694ca

Please sign in to comment.