Election-Tech-Initiative / electionguard-cpp

A C++ implementation of ElectionGuard specification focused on encryption components.
https://www.electionguard.vote/
MIT License
23 stars 26 forks source link

- Added checks for the election type and defaulting the VotesAllowed … #305

Closed SteveMaier-IRT closed 2 years ago

SteveMaier-IRT commented 2 years ago

…value to 1 if it is an n of m election

Issue

Link your PR to an issue

Fixes #291

Description

For the constructors where the Votes_Allowed was defaulting to 0, checked the election type and set it to a default of 1 if it was an n_of_m election.

Testing

C++ and C# unit tests added