Skip to content

Commit bfbff0f

Browse files
author
oscarddssmith
committed
add tests
1 parent 1c71fda commit bfbff0f

File tree

1 file changed

+7
-0
lines changed
  • stdlib/LinearAlgebra/test

1 file changed

+7
-0
lines changed

stdlib/LinearAlgebra/test/lu.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,4 +464,11 @@ end
464464
@test Matrix(F1) Matrix(F2) C
465465
end
466466

467+
@testset "matrix with Nonfinite"
468+
lu(fill(NaN, 2, 2), check=false)
469+
lu(fill(Inf, 2, 2), check=false)
470+
LinearAlgebra.generic_lufact!(fill(NaN, 2, 2), check=false)
471+
LinearAlgebra.generic_lufact!(fill(Inf, 2, 2), check=false)
472+
end
473+
467474
end # module TestLU

0 commit comments

Comments
 (0)