Skip to content

Commit 86e7191

Browse files
authored
update tests
1 parent 7452db8 commit 86e7191

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/default_algs.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ solve(prob)
3636
LinearSolve.DefaultAlgorithmChoice.QRFactorization
3737

3838

39-
A = spzeros(100, 100)
40-
A[1,1]=1
39+
A = spzeros(2, 2)
4140
# test that solving a singular problem doesn't error
42-
prob = LinearProblem(A, ones(100))
43-
solve(prob)
41+
prob = LinearProblem(A, ones(2))
42+
@test solve(prob, UMFPACKFactorization()).retcode == ReturnCode.Infeasible
43+
@test_broken solve(prob, KLUFactorization()).retcode == ReturnCode.Infeasible
44+
4445

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

0 commit comments

Comments
 (0)