Skip to content

Commit

Permalink
Update sympy/logic/tests/test_boolalg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
smichr authored Dec 4, 2024
1 parent e5cb369 commit 011ce28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sympy/logic/tests/test_boolalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ def test_simplification_boolalg():
e = And(A, b)
assert simplify_logic(e) == A & ~x & ~y
assert e.equals(A & ~x & ~y)
a1 = Contains(x, Interval(1, 2))
a2 = Contains(x, Interval(2, 3))
a3 = Contains(x, Interval(1, 3))
raises(NotImplementedError, lambda: (a1 | a2).equals(a3))
raises(ValueError, lambda: simplify_logic(A & (B | C), form='blabla'))
assert simplify(Or(x <= y, And(x < y, z))) == (x <= y)
assert simplify(Or(x <= y, And(y > x, z))) == (x <= y)
Expand Down

0 comments on commit 011ce28

Please sign in to comment.