Added unit test to make sure the extended data is not null
Issue
Link your PR to an issue
Fixes #296
Description
Removed the use of string.front since it is not valid when it is called on an empty string. Changed to using .begin and .end instead which is a more common practice.
Testing
Added a check to make sure that the extended data was not null when the contest was not overvoted or with write-ins.
Added unit test to make sure the extended data is not null
Issue
Link your PR to an issue
Fixes #296
Description
Removed the use of string.front since it is not valid when it is called on an empty string. Changed to using .begin and .end instead which is a more common practice.
Testing
Added a check to make sure that the extended data was not null when the contest was not overvoted or with write-ins.