Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Feb 17, 2017
1 parent eaf0b10 commit 7083c4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions diofant/solvers/tests/test_solvers.py
Expand Up @@ -1490,3 +1490,11 @@ def test_sympyissue_12114():
b: -sqrt(3)*f/2 + sqrt(-f**2 + 2)/2, c: -sqrt(-f**2 + 2),
d: -f/2 + sqrt(-3*f**2 + 6)/2,
e: -f/2 - sqrt(3)*sqrt(-f**2 + 2)/2, g: 2}]


def test_sympyissue_12180():
e1, e2 = x - y*b, x*a - y
assert (solve(e1, [x, y], dict=True) ==
solve(e1, x, y, dict=True) == [{x: y*b}])
assert (solve(e2, [x, y], dict=True) ==
solve(e2, x, y, dict=True) == [{x: y/a}])
1 change: 1 addition & 0 deletions docs/release/notes-0.9.rst
Expand Up @@ -94,6 +94,7 @@ Issues closed
* `#371 <https://github.com/diofant/diofant/issues/371>`_ Better documentation for BaseSymbol
* `#432 <https://github.com/diofant/diofant/issues/432>`_ Permission to use your patches in SymPy
* `#431 <https://github.com/diofant/diofant/issues/431>`_ minpoly() is wrong for AlgebraicNumber's with coeffs != (1, 0)
* `sympy/sympy#12180 <https://github.com/sympy/sympy/issues/12180>`_ Confusing output from sympy.solve

.. last pr: #433
Expand Down

0 comments on commit 7083c4c

Please sign in to comment.