Skip to content

Commit 81a99aa

Browse files
committed
test_functions(): Don't use a non-canonical Subs.
1 parent e9aec56 commit 81a99aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

symengine/tests/test_functions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ def test_Subs():
9090
assert Subs(Derivative(function_symbol("f", x, y), [x]), [x, y], [_x, x]) \
9191
== Subs(Derivative(function_symbol("f", x, y), [x]), [y, x], [x, _x])
9292

93-
s = Subs(function_symbol("f", _x), [_x], [x])
94-
assert s.expr == function_symbol("f", _x)
95-
assert s.variables == (_x,)
96-
assert s.point == (x,)
93+
s = f.diff(x)/2
94+
_xi_1 = Symbol("_xi_1")
95+
assert s.expr == Derivative(function_symbol("f", _xi_1), [_xi_1])
96+
assert s.variables == (_xi_1,)
97+
assert s.point == (2*x,)
9798

9899
def test_FunctionWrapper():
99100
import sympy

0 commit comments

Comments
 (0)