Skip to content

Commit

Permalink
Add minimal expression test.
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Nov 27, 2023
1 parent 26876c4 commit d04a416
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_gap_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@


def test_unsorted_closed():
with pytest.raises(ValueError, match=r"unsorted"):
with pytest.raises(ValueError, match="unsorted"):
Gaps([1, 0])


def test_unsorted_open():
with pytest.raises(ValueError, match=r"unsorted"):
with pytest.raises(ValueError, match="unsorted"):
Gaps([Endpoint(1, "("), Endpoint(0, ")")])


Expand All @@ -21,5 +21,10 @@ def test_missing_singleton_ok():


def test_open_closed():
with pytest.raises(ValueError, match=r"not minimally expressed"):
with pytest.raises(ValueError, match="not minimally expressed"):
Gaps([0, Endpoint(1, ")"), 1, 2])


def test_closed_open():
with pytest.raises(ValueError, match="not minimally expressed"):
Gaps([0, 1, Endpoint(1, "("), 2])

0 comments on commit d04a416

Please sign in to comment.