Skip to content

Commit

Permalink
Update static_arrays.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jul 29, 2024
1 parent 3634255 commit 4cdf9fc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/static_arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ for alg in (nothing, LUFactorization(), SVDFactorization(), CholeskyFactorizatio
@inferred solve(LinearProblem(A, b), alg)
@test norm(A * sol .- b) < 1e-10

if __non_native_static_array_alg(alg)
@test_broken __solve_no_alloc(A, b, alg) isa SciMLBase.LinearSolution
else
@test_nowarn __solve_no_alloc(A, b, alg) isa SciMLBase.LinearSolution
end

@show alg
@test_nowarn __solve_no_alloc(A, b, alg) isa SciMLBase.LinearSolution
cache = init(LinearProblem(A, b), alg)
sol = solve!(cache)
@test norm(A * sol .- b) < 1e-10
Expand Down

0 comments on commit 4cdf9fc

Please sign in to comment.