Skip to content

Commit a0acc49

Browse files
committed
Add test from #207
1 parent 6678dd3 commit a0acc49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: test/pdmtypes.jl

+8
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,12 @@ using Test
304304
@test_broken C - B isa Diagonal{Float64, Vector{Float64}}
305305
@test C - B Matrix(C) - Matrix(B)
306306
end
307+
308+
# https://github.com/JuliaStats/PDMats.jl/pull/207
309+
@testset "PDMat from SymTridiagonal" begin
310+
S = SymTridiagonal(fill(4, 4), fill(1, 3))
311+
M = @inferred(PDMat(S))
312+
@test M isa PDMat{Int,<:SymTridiagonal,<:Cholesky}
313+
@test M == S
314+
end
307315
end

0 commit comments

Comments
 (0)