Skip to content

Commit 9eb6bf4

Browse files
authored
Add substitution test failing for DynamicPolynomials (#274)
1 parent 3952d85 commit 9eb6bf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/substitution.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ import MutableArithmetics as MA
4545
@inferred subs(p, x[1] => 1)
4646
@test iszero(subs(p, x[1] => 1))
4747

48+
# https://github.com/JuliaAlgebra/DynamicPolynomials.jl/issues/141
49+
@test subs(x[1]^2 + x[2]^2, x[1] => x[3]^2) == x[2]^2 + x[3]^4
50+
4851
q = (x[1] + 1) / (x[1] + 2)
4952
@test isapproxzero(q(x[1] => -1))
5053
@test !isapproxzero(q(x[1] => 1))

0 commit comments

Comments
 (0)