@@ -14,18 +14,6 @@ using namespace electionguard;
1414using namespace electionguard ::tools::generators;
1515using namespace std ;
1616
17- #ifndef TEST_BALLOT_WITH_WRITEIN_SELECTED
18- # define TEST_BALLOT_WITH_WRITEIN_SELECTED \
19- " 0.95.0/sample/full/election_private_data/plaintext_ballots/" \
20- " plaintext_ballot_03a29d15-667c-4ac8-afd7-549f19b8e4eb.json"
21- #endif
22-
23- #ifndef TEST_BALLOT_WITH_WRITEIN_NOT_SELECTED
24- # define TEST_BALLOT_WITH_WRITEIN_NOT_SELECTED \
25- " 0.95.0/sample/full/election_private_data/plaintext_ballots/" \
26- " plaintext_ballot_ballot-06e7aa04-73fc-11ec-8051-acde48001122.json"
27- #endif
28-
2917TEST_CASE (" Encrypt simple selection succeeds" )
3018{
3119 // Arrange
@@ -273,10 +261,6 @@ TEST_CASE("Encrypt full PlaintextBallot with WriteIn and Overvote with Encryptio
273261 " \" is_placeholder_selection\" : false, \" extended_data\" : null}, {\" object_id\" :"
274262 " \" write-in-selection\" , \" sequence_order\" : 3, \" vote\" : 1, \" is_placeholder_selection\" "
275263 " : false, \" write_in\" : \" Susan B. Anthony\" }], \" extended_data\" : null}]}" );
276- // TODO - Once the relevant plaintext ballot file is in the environment then
277- // uncomment the below and stop using the hard coded string.
278- // auto plaintextBallot =
279- // BallotGenerator::getSimpleBallotFromFile(TEST_BALLOT_WITH_WRITEIN_SELECTED);
280264 auto plaintextBallot = PlaintextBallot::fromJson (plaintextBallot_json);
281265 auto ciphertext = mediator->encrypt (*plaintextBallot);
282266
0 commit comments