-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error causing same role assignments every day (#73)
* Fix error causing same role assignments every day A bug in the left and right filters in calculateMovesToBestAssignment() led to the algorithm ignoring all past assignments. This, in turn, led to the same role assignment every day. - Add a test case to ensure that a person who never did a role is the first choice for that role. - Fix the assertions in existing tests based on hand calculation of the Munkres algorithm input matrix. My guess is that the original assertions were derived from the broken code's output so they weren't reliable. - Reuse the `key` function instead of reimplementing it inline. * Fix "Could not find a declaration file for module 'history'"
- Loading branch information
1 parent
d8a92bc
commit 95856f2
Showing
4 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters