Skip to content

Commit

Permalink
One more test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 24, 2024
1 parent f3ad498 commit 37bc56f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/test_issue35.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

# this should not segfault
@pytest.mark.skip # temporarily disabled to check other tests
def test_issue35() -> None:
def test_issue35_1() -> None:
mat = cdd.matrix_from_array([[0, 0, 0]], rep_type=cdd.RepType.INEQUALITY)
cdd.matrix_canonicalize(mat)
assert cdd.matrix_canonicalize(mat) == ({0}, None)
assert mat.array == []


def test_issue35_2() -> None:
Expand All @@ -23,11 +24,17 @@ def test_issue35_3() -> None:

def test_issue35_4() -> None:
mat = cdd.matrix_from_array([], rep_type=cdd.RepType.INEQUALITY)
assert cdd.matrix_redundancy_remove(mat) == (set(), [])
assert cdd.matrix_canonicalize(mat) == (set(), set(), [])
assert mat.array == []


def test_issue35_5() -> None:
mat = cdd.matrix_from_array([], rep_type=cdd.RepType.INEQUALITY)
assert cdd.matrix_redundancy_remove(mat) == (set(), [])
assert mat.array == []


def test_issue35_6() -> None:
mat = cdd.matrix_from_array([], rep_type=cdd.RepType.INEQUALITY)
assert cdd.matrix_canonicalize_linearity(mat) == (set(), [])
assert mat.array == []

0 comments on commit 37bc56f

Please sign in to comment.