pivot-libre / tideman

Implementation of the Tideman ranked pairs algorithm
Apache License 2.0
9 stars 3 forks source link

Fix false duplicate registrations in MarginRegistry #61

Closed carlschroedl closed 6 years ago

carlschroedl commented 6 years ago

MarginRegistry breaks when the winners id is : and the losers id is ::

"::::" == "::::"

This problem could be solved using two nested PHP arrays. Consider using real data structures too.