-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for 'Segment.op_Inequality' method
- Loading branch information
1 parent
794aeb4
commit 7f39a39
Showing
1 changed file
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from hypothesis import given | ||
|
||
from tests.binding import Segment | ||
from tests.utils import equivalence | ||
from . import strategies | ||
|
||
|
||
@given(strategies.segments) | ||
def test_irreflexivity(segment: Segment) -> None: | ||
assert not segment != segment | ||
|
||
|
||
@given(strategies.segments, strategies.segments) | ||
def test_symmetry(first: Segment, second: Segment) -> None: | ||
assert equivalence(first != second, second != first) | ||
|
||
|
||
@given(strategies.segments, strategies.segments) | ||
def test_equivalents(first: Segment, second: Segment) -> None: | ||
assert equivalence(first != second, not first == second) |