-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tester): remove duplicate solutions when checking against Conjure
Remove duplicate solutions found by Minion before comparing them against Conjures solutions. Duplicates are introduced when we remove auxiliary variables from our solutions. Conjure. For example, `{__0=1,x=1,y=2}` and `{__0=0,x=1,y=2}` become identical to each other. As Conjure only has this solution once, the check would fail. This was causing problems in #425. To fix this, this patch changes the type of solutions from `HashMap` to `BTreeMap`. This implements `Eq` and `Hash`, allowing us to use `.unique()` on our list of solutions. Note that this patch only changes this in the tester; future work should make all solution fetching code use `BTreeMap`. Once this is done, the solution checking logic could likely be simplified as it was written the way it was because `HashMaps` could not be directly compared.
- Loading branch information
1 parent
38e7999
commit b65a5c5
Showing
4 changed files
with
20 additions
and
13 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