Skip to content

Commit 3972616

Browse files
committed
Fix Symmetric tests
1 parent 210a062 commit 3972616

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DSP = "0.7"
2525
FillArrays = "0.12, 0.13"
2626
InfiniteArrays = "0.12"
2727
LazyArrays = "0.22"
28-
LazyBandedMatrices = "0.7.13"
28+
LazyBandedMatrices = "0.7.15"
2929
MatrixFactorizations = "0.9"
3030
SemiseparableMatrices = "0.3"
3131
julia = "1.6"

test/runtests.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ include("test_infbanded.jl")
182182
@testset "Symmetric" begin
183183
k = mortar(Base.OneTo.(oneto(∞)))
184184
n = mortar(Fill.(oneto(∞), oneto(∞)))
185+
185186
dat = BlockHcat(
186187
BlockBroadcastArray(hcat, float.(k), Zeros((axes(n, 1),)), float.(n)),
187188
Zeros((axes(n, 1), Base.OneTo(3))),
@@ -200,10 +201,8 @@ include("test_infbanded.jl")
200201

201202
dat = BlockBroadcastArray(hcat, float.(k), Zeros((axes(n, 1),)), float.(n))
202203
M = BlockBandedMatrices._BandedBlockBandedMatrix(dat', axes(k, 1), (-1, 1), (1, 1))
203-
M+M
204-
205-
# doesn't work
206-
Ms+Ms |> typeof
204+
Ms = Symmetric(M)
205+
@test Symmetric((M+M)[Block.(1:10), Block.(1:10)]) == (Ms+Ms)[Block.(1:10), Block.(1:10)]
207206
end
208207
end
209208

0 commit comments

Comments
 (0)