Skip to content

Commit

Permalink
Add regression test for sympy/sympy#11159
Browse files Browse the repository at this point in the history
This issue was fixed in ee3c4ed.
  • Loading branch information
skirpichev committed May 26, 2016
1 parent dc3278f commit ffb76cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sympy/core/tests/test_subs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sympy import (Symbol, Wild, sin, cos, exp, sqrt, pi, Function, Derivative,
abc, Integer, Eq, symbols, Add, I, Float, log, Rational, Lambda,
atan2, cse, cot, tan, S, Tuple, Basic, Dict, Piecewise, oo, Mul,
factor, nsimplify, zoo, Subs)
factor, nsimplify, zoo, Subs, E)
from sympy.core.basic import _aresame

from sympy.abc import x, y, z
Expand Down Expand Up @@ -654,3 +654,9 @@ def test_pow_eval_subs_no_cache():
def test_diofantissue_124():
n = Symbol('n', integer=True)
assert exp(n*x).subs({exp(x): x}) == x**n


def test_issue_11159():
exp1 = E
exp0 = exp1*exp1
assert exp0.subs(exp1, exp0) == E**4

0 comments on commit ffb76cb

Please sign in to comment.