Skip to content

Commit

Permalink
Add tests for syconvf_rook! errors (#24397)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored and andreasnoack committed Oct 30, 2017
1 parent 75d95f9 commit ccb02de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/linalg/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,14 @@ end
b,A = LAPACK.sysv_rook!('U',A,b)
@test b c
@test_throws DimensionMismatch LAPACK.sysv_rook!('U',A,rand(elty,11))

# syconvf_rook error handling
# way argument is wrong
@test_throws ArgumentError LAPACK.syconvf_rook!('U', 'U', A, rand(BlasInt, 10))
# ipiv has wrong length
@test_throws ArgumentError LAPACK.syconvf_rook!('U', 'R', A, rand(BlasInt, 9))
# e has wrong length
@test_throws ArgumentError LAPACK.syconvf_rook!('U', 'R', A, rand(BlasInt, 10), rand(elty, 9))
end
end

Expand Down

0 comments on commit ccb02de

Please sign in to comment.