Skip to content

Commit

Permalink
Check what is broken in the linear equations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolaru committed May 26, 2024
1 parent 2d40feb commit b5ee414
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/linear_eq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,15 @@ end

n = length(As)

for solver in (gauss_seidel_interval, gauss_seidel_contractor, gauss_elimination_interval, \)
@testset "Solver $solver" begin
if solver in (gauss_seidel_interval, gauss_seidel_contractor)
@test_broken false
continue
end

for i in 1:n
soln = solver(As[i], bs[i])
@test all(issubset_interval.(xs[i], soln))
end
@testset for solver in (gauss_seidel_interval, gauss_seidel_contractor, gauss_elimination_interval, \)
if solver in (gauss_seidel_interval, gauss_seidel_contractor)
@test_broken false
continue
end

for i in 1:n
soln = solver(As[i], bs[i])
@test all(issubset_interval.(xs[i], soln))
end
end
end

0 comments on commit b5ee414

Please sign in to comment.