Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Sep 2, 2021
1 parent e3d1e88 commit 17a3b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions diofant/tests/solvers/test_polysys.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,8 @@ def test_solve_surd_system():
res = [{x: 17*y**2/288 - sqrt(y**4 - 1440)/288},
{x: 17*y**2/288 + sqrt(y**4 - 1440)/288}]
assert solve_surd_system(eqs, x) == res


def test_sympyissue_21999():
assert solve_poly_system([x - 1], x, y) == [{x: 1}]
assert solve_poly_system([y - 1], x, y) == [{y: 1}]
1 change: 1 addition & 0 deletions docs/release/notes-0.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ These Sympy issues also were addressed:
* :sympyissue:`21905`: raise NotImplementedError("Equation not in exact domain. Try converting to rational") Error
* :sympyissue:`21938`: Series raises an error at infinity for an example which can be solved by aseries
* :sympyissue:`21984`: ValueError: list.remove(x): x not in list occurs in nonlinsolve
* :sympyissue:`21999`: detection of infinite solution request

0 comments on commit 17a3b07

Please sign in to comment.