Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Mar 28, 2021
1 parent e3b8868 commit 7bf6b54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion diofant/tests/series/test_limits.py
Expand Up @@ -25,7 +25,7 @@ def test_basic1():
assert limit(x**2, x, -oo) == oo
assert limit(-x**2, x, oo) == -oo
assert limit(x*log(x), x, 0, dir='+') == 0
assert limit(1/x, x, oo) == 0
assert limit(1/x, x, oo) == 0 # issue sympy/sympy#11667
assert limit(exp(x), x, oo) == oo
assert limit(-exp(x), x, oo) == -oo
assert limit(exp(x)/x, x, oo) == oo
Expand Down Expand Up @@ -846,3 +846,7 @@ def test_sympyissue_19453():

assert limit(e - h*w/2, beta, oo) == 0
assert limit(e.simplify() - h*w/2, beta, oo) == 0


def test_sympyissue_19442():
pytest.raises(PoleError, lambda: limit(1/x, x, 0, 'real'))
2 changes: 2 additions & 0 deletions docs/release/notes-0.13.rst
Expand Up @@ -67,3 +67,5 @@ These Sympy issues also were addressed:
* :sympyissue:`20578`: A strange behavior of limit function
* :sympyissue:`20444`: Leading Term with log
* :sympyissue:`19453`: Limit changes from simplification of original expression
* :sympyissue:`19442`: Non-existent bi-directional limit gives ValueError
* :sympyissue:`11667`: limit(1/x, x, 0) == oo ??

0 comments on commit 7bf6b54

Please sign in to comment.