-
-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add product type to the Rule trait to simplify unit testing. (#10720)
### Problem The `Rule` trait did not require that a `Rule` declare its own return type, which was ... strange. It also made unit testing more awkward, because rules needed to be declared in a type->rules map rather than a flat list. ### Solution Add `Rule::product`, and simplify tests. [ci skip-build-wheels]
- Loading branch information
Showing
6 changed files
with
162 additions
and
229 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
Oops, something went wrong.