-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use xfail instead of silently passing tests
This makes it more clear when certain features are not supported by an algebra. To be able to use xfail, this adds a mechanism to declare what sidedness values are supported by specfic algebra operations. This mechanism is a decorator which adds an attribute with the allowed sidedness values to the method object. Closes #281.
- Loading branch information
Showing
10 changed files
with
301 additions
and
231 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
"""Algebras define the specific superposition and (un)binding operations.""" | ||
|
||
from .base import AbstractAlgebra, CommonProperties, ElementSidedness | ||
from .base import ( | ||
AbstractAlgebra, | ||
CommonProperties, | ||
ElementSidedness, | ||
supports_sidedness, | ||
) | ||
from .hrr_algebra import HrrAlgebra, HrrProperties | ||
from .tvtb_algebra import TvtbAlgebra, TvtbProperties | ||
from .vtb_algebra import VtbAlgebra, VtbProperties |
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.