Skip to content

Commit d5b47a0

Browse files
authored
Test SingularException throw for naivesub (#36331)
1 parent a985bed commit d5b47a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/LinearAlgebra/test/bidiag.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ Random.seed!(1)
232232
@test_throws DimensionMismatch transpose(T) \ offsizemat
233233
@test_throws DimensionMismatch T' \ offsizemat
234234

235+
if elty <: BlasReal
236+
@test_throws SingularException LinearAlgebra.naivesub!(Bidiagonal(zeros(elty, n), ones(elty, n-1), :U), rand(elty, n))
237+
@test_throws SingularException LinearAlgebra.naivesub!(Bidiagonal(zeros(elty, n), ones(elty, n-1), :L), rand(elty, n))
238+
end
235239
let bb = b, cc = c
236240
for atype in ("Array", "SubArray")
237241
if atype == "Array"

0 commit comments

Comments
 (0)