Skip to content

Commit c64edb5

Browse files
committed
Tests for Upper/LowerTriangular and Diagonal convert
1 parent c75459f commit c64edb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/linalg4.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ let a=[1.0:n;]
7777
for newtype in [Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal]
7878
@test_throws ArgumentError convert(newtype,A)
7979
end
80+
A = Diagonal(a)
81+
for newtype in [UpperTriangular, LowerTriangular]
82+
@test full(convert(newtype,A)) == full(A)
83+
end
8084
end
8185

8286
# Binary ops among special types

0 commit comments

Comments
 (0)