Skip to content

Commit e58bb98

Browse files
committed
More tests of .has(...)
1 parent 3a85f67 commit e58bb98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

symengine/tests/test_expr.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ def test_Basic__has():
3737
assert e.has(xp3)
3838
assert e.has(ym4)
3939
assert not e.has(y-5)
40+
41+
assert (x + oo).has(oo)
42+
assert (x - oo).has(-oo)
43+
assert not (x + oo).has(-oo)
44+
#assert not (x - oo).has(oo) <-- not sure we want to test explicitly for "x + NegativeInfinity"

0 commit comments

Comments
 (0)