From 86e7191bc84891936a0d84b5983c4e0aef1cc94d Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Fri, 23 Feb 2024 17:07:07 -0500 Subject: [PATCH] update tests --- test/default_algs.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/default_algs.jl b/test/default_algs.jl index da998fad1..c604129c9 100644 --- a/test/default_algs.jl +++ b/test/default_algs.jl @@ -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