From 5081d50544b6380e087f6a14a2d4aae9aaa35521 Mon Sep 17 00:00:00 2001 From: Amin Sadeghi Date: Sat, 28 Oct 2023 17:31:06 -0400 Subject: [PATCH] Refactor for more readability --- test/basictests.jl | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/test/basictests.jl b/test/basictests.jl index 6dba16103..a1050132a 100644 --- a/test/basictests.jl +++ b/test/basictests.jl @@ -220,19 +220,16 @@ end end end - test_algs = if VERSION >= v"1.9" - (LUFactorization(), - QRFactorization(), - SVDFactorization(), - RFLUFactorization(), - MKLLUFactorization(), - LinearSolve.defaultalg(prob1.A, prob1.b)) - else - (LUFactorization(), - QRFactorization(), - SVDFactorization(), - RFLUFactorization(), - LinearSolve.defaultalg(prob1.A, prob1.b)) + test_algs = [ + LUFactorization(), + QRFactorization(), + SVDFactorization(), + RFLUFactorization(), + LinearSolve.defaultalg(prob1.A, prob1.b), + ] + + if VERSION >= v"1.9" + push!(test_algs, MKLLUFactorization()) end @testset "Concrete Factorizations" begin