Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rbed committed Sep 7, 2024
1 parent 1d797fb commit d292e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ end

@testset "Multivar parametric" begin
@variables x y a
@test isequal(symbolic_solve([x + a, a - 1], x), [])
@test isequal(symbolic_solve([x + a, a - 1], x), [-1])
@test isequal(symbolic_solve([x - a, y + a], [x, y]), [Dict(y => -a, x => a)])
@test isequal(symbolic_solve([x*y - a, x*y + x], [x, y]), [Dict(y => -1, x => -a)])
@test isequal(symbolic_solve([x*y - a, 1 ~ 3], [x, y]), [])
Expand All @@ -283,13 +283,13 @@ end
@test isequal(sol, [Dict(t => -5 / (-1 + u + v), w => 1 - u - v)])

sol = symbolic_solve([x-y, y-z], [x])
@test isequal(sol, [Dict(x=>z)])
@test isequal(sol, [z])

sol = symbolic_solve([x-y, y-z], [x, y])
@test isequal(sol, [Dict(x=>z, y=>z)])

sol = symbolic_solve([x + y - z, y - z], [x])
@test isequal(sol, [Dict(x=>0)])
@test isequal(sol, [0])
end

@testset "Factorisation" begin
Expand Down

0 comments on commit d292e16

Please sign in to comment.