Skip to content

Commit 6eaaec2

Browse files
committed
Unpack in a single line for better readability
1 parent 6655ae9 commit 6eaaec2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/basictests.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,8 @@ prob4 = LinearProblem(A4, b4; u0 = x4)
3434
cache_kwargs = (; verbose = true, abstol = 1e-8, reltol = 1e-8, maxiter = 30)
3535

3636
function test_interface(alg, prob1, prob2)
37-
A1 = prob1.A
38-
b1 = prob1.b
39-
x1 = prob1.u0
40-
A2 = prob2.A
41-
b2 = prob2.b
42-
x2 = prob2.u0
37+
A1, b1 = prob1.A, prob1.b
38+
A2, b2 = prob2.A, prob2.b
4339

4440
sol = solve(prob1, alg; cache_kwargs...)
4541
@test A1 * sol.u b1

0 commit comments

Comments
 (0)