From cd9f00aefe3ec337335724f1ac46109662457b76 Mon Sep 17 00:00:00 2001 From: Ian Kluft Date: Mon, 11 Sep 2023 23:43:28 -0700 Subject: [PATCH] CEF parser: add invalid CEF example from spec as test case --- .../t/test-inputs/021_cef_cvotes/000-test-metadata.yml | 2 ++ .../t/test-inputs/021_cef_cvotes/cef-doc-invalid4.cvotes | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 src/perl/prefvote/t/test-inputs/021_cef_cvotes/cef-doc-invalid4.cvotes diff --git a/src/perl/prefvote/t/test-inputs/021_cef_cvotes/000-test-metadata.yml b/src/perl/prefvote/t/test-inputs/021_cef_cvotes/000-test-metadata.yml index f450287..22b8340 100644 --- a/src/perl/prefvote/t/test-inputs/021_cef_cvotes/000-test-metadata.yml +++ b/src/perl/prefvote/t/test-inputs/021_cef_cvotes/000-test-metadata.yml @@ -9,3 +9,5 @@ cef-doc-example2.cvotes: error: "^weight not permitted without weight_allowed flag" cef-doc-invalid3.cvotes: error: "^Syntax error at position 12, expected EMPTY_RANKING INT WORD" +cef-doc-invalid4.cvotes: + error: "^Syntax error at position 12, expected EMPTY_RANKING INT WORD" diff --git a/src/perl/prefvote/t/test-inputs/021_cef_cvotes/cef-doc-invalid4.cvotes b/src/perl/prefvote/t/test-inputs/021_cef_cvotes/cef-doc-invalid4.cvotes new file mode 100644 index 0000000..4a6e0dd --- /dev/null +++ b/src/perl/prefvote/t/test-inputs/021_cef_cvotes/cef-doc-invalid4.cvotes @@ -0,0 +1,4 @@ +# My beautiful election +#/Candidates: Candidate A;Candidate B;Candidate C + +Candidate A < Candidate B > Candidate C