Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 4, 2024
1 parent 1a6c369 commit 560b1a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/substitution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ import MutableArithmetics as MA
Mod.@polyvar x[1:3]
t = T(1) * x[1]
@test copy(t).coefficient !== t.coefficient
@test mutable_copy(t).coefficient !== t.coefficient
@test copy_if_mutable(t).coefficient !== t.coefficient
@test MA.mutable_copy(t).coefficient !== t.coefficient
@test MA.copy_if_mutable(t).coefficient !== t.coefficient
F = T(5) * x[1] * x[2] * x[3] + T(1) * x[1] * x[2]^2
@test subs(F, c => T(0)) == a * b^2
@test subs(F, c => 0) == a * b^2
@test subs(F, x[3] => T(0)) == x[1] * x[2]^2
@test subs(F, x[3] => 0) == x[1] * x[2]^2
end
end

0 comments on commit 560b1a0

Please sign in to comment.