Skip to content

Commit cb10fb0

Browse files
committed
Add tests
1 parent dfe5b07 commit cb10fb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/generics.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ for i in 1:length(pmats)
2222
@test Matrix(3 * pmats[i]) == Matrix(pmatsa[i])
2323
@test Matrix(pmats[i] * 3) == Matrix(pmatsa[i])
2424
end
25+
26+
# issue #123
27+
@test isposdef(PDMat([1.0 0.0; 0.0 1.0]))
28+
@test isposdef(PDiagMat([1.0, 1.0]))
29+
@test isposdef(ScalMat(2, 3.0))

0 commit comments

Comments
 (0)