Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Feb 23, 2024
1 parent 7452db8 commit 86e7191
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/default_algs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ solve(prob)
LinearSolve.DefaultAlgorithmChoice.QRFactorization


A = spzeros(100, 100)
A[1,1]=1
A = spzeros(2, 2)
# test that solving a singular problem doesn't error
prob = LinearProblem(A, ones(100))
solve(prob)
prob = LinearProblem(A, ones(2))
@test solve(prob, UMFPACKFactorization()).retcode == ReturnCode.Infeasible
@test_broken solve(prob, KLUFactorization()).retcode == ReturnCode.Infeasible


@test LinearSolve.defaultalg(sprand(10^4, 10^4, 1e-5) + I, zeros(1000)).alg ===
LinearSolve.DefaultAlgorithmChoice.KLUFactorization
Expand Down

0 comments on commit 86e7191

Please sign in to comment.