Skip to content

Commit 7e6b22f

Browse files
committed
add band(0) test
1 parent cf1920a commit 7e6b22f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BlockBandedMatrices = "0.10"
2424
DSP = "0.6, 0.7"
2525
FillArrays = "0.11"
2626
InfiniteArrays = "0.11"
27-
LazyArrays = "0.21"
27+
LazyArrays = "0.21.8"
2828
LazyBandedMatrices = "0.6"
2929
MatrixFactorizations = "0.8"
3030
SemiseparableMatrices = "0.2.3"

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ include("test_infconv.jl")
128128
@test Eye(∞)[1:3,:][:,1:5] == Eye(∞)[1:3,Base.Slice(oneto(∞))][:,1:5] == Eye(3,5)
129129
@test Eye(∞)[:,:][1:5,1:3] == Eye(∞)[Base.Slice(oneto(∞)),Base.Slice(oneto(∞))][1:5,1:3] == Eye(5,3)
130130
end
131+
132+
@testset "band(0) indexing" begin
133+
D = ApplyArray(*, Diagonal(1:∞), Diagonal(1:∞))
134+
@test D[band(0)][1:10] == (1:10).^2
135+
end
131136
end
132137

133138
@testset "∞-block arrays" begin

0 commit comments

Comments
 (0)