Closed endolith closed 2 years ago
Also is results['round_results']
meant to be a list with a single element? Or a dict? There will only ever be 2 rounds, right?
results['round_results'][0]['runner_up']
is the intended usage? Or results['round_results']['runner_up']
?
It has 1 element per round. So if you have a 3 winner election you'll have 3 elements. Each round will tell you info about who won the round, who was runner up, and if there were ties.
Maybe runoff_candidates is getting more than 2 candidates?
Also, since we did change the tie breaker protocol from what star_core uses some of those tests might not pass. The star_core code and tests will need to be updated.
Trying to add the test cases from star-core but they're all failing:
These all fail with