import typing as t from hypothesis import given from rene.exact import Contour from tests.utils import equivalence from . import strategies @given(strategies.polygons_holes) def test_irreflexivity(holes: t.Sequence[Contour]) -> None: assert not holes != holes @given(strategies.polygons_holes, strategies.polygons_holes) def test_symmetry(first: t.Sequence[Contour], second: t.Sequence[Contour]) -> None: assert equivalence(first != second, second != first) @given(strategies.polygons_holes, strategies.polygons_holes) def test_equivalents(first: t.Sequence[Contour], second: t.Sequence[Contour]) -> None: assert equivalence(first != second, not first == second)