Skip to content

Commit

Permalink
Add test from #207
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Aug 5, 2024
1 parent 6678dd3 commit a0acc49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/pdmtypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,12 @@ using Test
@test_broken C - B isa Diagonal{Float64, Vector{Float64}}
@test C - B Matrix(C) - Matrix(B)
end

# https://github.com/JuliaStats/PDMats.jl/pull/207
@testset "PDMat from SymTridiagonal" begin
S = SymTridiagonal(fill(4, 4), fill(1, 3))
M = @inferred(PDMat(S))
@test M isa PDMat{Int,<:SymTridiagonal,<:Cholesky}
@test M == S
end
end

0 comments on commit a0acc49

Please sign in to comment.