Skip to content

Commit

Permalink
Add more test combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Sep 15, 2024
1 parent 07b5987 commit df9fe68
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stdlib/LinearAlgebra/test/addmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,16 @@ end
C = zeros(1,1)
@testset "$(nameof(typeof(A)))" for A in Any[Diagonal([NaN]),
Bidiagonal([NaN], Float64[], :U),
Bidiagonal([NaN], Float64[], :L),
SymTridiagonal([NaN], Float64[]),
Tridiagonal(Float64[], [NaN], Float64[]),
]
@testset "$(nameof(typeof(B)))" for B in Any[SymTridiagonal([1.0], Float64[]),
Tridiagonal(Float64[], [1.0], Float64[]),
@testset "$(nameof(typeof(B)))" for B in Any[
Diagonal([1.0]),
Bidiagonal([1.0], Float64[], :U),
Bidiagonal([1.0], Float64[], :L),
SymTridiagonal([1.0], Float64[]),
Tridiagonal(Float64[], [1.0], Float64[]),
]
C .= 0
@test mul!(C, A, B, 0.0, false)[] === 0.0
Expand Down

0 comments on commit df9fe68

Please sign in to comment.