Skip to content

Commit 59268fc

Browse files
committed
Refactor for more readability
1 parent f78a880 commit 59268fc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/basictests.jl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,17 @@ end
269269

270270
@testset "KrylovJL" begin
271271
kwargs = (; gmres_restart = 5)
272-
for alg in (("Default", KrylovJL(kwargs...)),
272+
algorithms = (
273+
("Default", KrylovJL(kwargs...)),
273274
("CG", KrylovJL_CG(kwargs...)),
274275
("GMRES", KrylovJL_GMRES(kwargs...)),
275-
# ("BICGSTAB",KrylovJL_BICGSTAB(kwargs...)),
276-
("MINRES", KrylovJL_MINRES(kwargs...)))
277-
@testset "$(alg[1])" begin
278-
test_interface(alg[2], prob1, prob2)
279-
test_interface(alg[2], prob3, prob4)
276+
# ("BICGSTAB",KrylovJL_BICGSTAB(kwargs...)),
277+
("MINRES", KrylovJL_MINRES(kwargs...))
278+
)
279+
for (name, algorithm) in algorithms
280+
@testset "$name" begin
281+
test_interface(algorithm, prob1, prob2)
282+
test_interface(algorithm, prob3, prob4)
280283
end
281284
end
282285
end

0 commit comments

Comments
 (0)