Skip to content

Commit 3bf21bc

Browse files
committed
Add test
1 parent f161b7a commit 3bf21bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/tridiag.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,4 +1172,10 @@ end
11721172
end
11731173
end
11741174

1175+
@testset "SymTridiagonal from Symmetric" begin
1176+
S = Symmetric(reshape(1:9, 3, 3))
1177+
ST = SymTridiagonal(S)
1178+
@test ST == SymTridiagonal(diag(S), diag(S,1))
1179+
end
1180+
11751181
end # module TestTridiagonal

0 commit comments

Comments
 (0)