Skip to content

Commit 5081d50

Browse files
committed
Refactor for more readability
1 parent fb51cd8 commit 5081d50

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

test/basictests.jl

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -220,19 +220,16 @@ end
220220
end
221221
end
222222

223-
test_algs = if VERSION >= v"1.9"
224-
(LUFactorization(),
225-
QRFactorization(),
226-
SVDFactorization(),
227-
RFLUFactorization(),
228-
MKLLUFactorization(),
229-
LinearSolve.defaultalg(prob1.A, prob1.b))
230-
else
231-
(LUFactorization(),
232-
QRFactorization(),
233-
SVDFactorization(),
234-
RFLUFactorization(),
235-
LinearSolve.defaultalg(prob1.A, prob1.b))
223+
test_algs = [
224+
LUFactorization(),
225+
QRFactorization(),
226+
SVDFactorization(),
227+
RFLUFactorization(),
228+
LinearSolve.defaultalg(prob1.A, prob1.b),
229+
]
230+
231+
if VERSION >= v"1.9"
232+
push!(test_algs, MKLLUFactorization())
236233
end
237234

238235
@testset "Concrete Factorizations" begin

0 commit comments

Comments
 (0)