Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jul 12, 2023
1 parent 1c71fda commit bfbff0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stdlib/LinearAlgebra/test/lu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,4 +464,11 @@ end
@test Matrix(F1) Matrix(F2) C
end

@testset "matrix with Nonfinite"
lu(fill(NaN, 2, 2), check=false)
lu(fill(Inf, 2, 2), check=false)
LinearAlgebra.generic_lufact!(fill(NaN, 2, 2), check=false)
LinearAlgebra.generic_lufact!(fill(Inf, 2, 2), check=false)
end

end # module TestLU

0 comments on commit bfbff0f

Please sign in to comment.