Skip to content

Commit ffd2950

Browse files
committed
Update test_infblock.jl
1 parent 9a5cfab commit ffd2950

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_infblock.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ const BlockTriPertToeplitz = InfiniteArraysBlockArraysExt.BlockTriPertToeplitz
5252
end
5353

5454
@testset "padded" begin
55-
c = BlockedArray([1; zeros(∞)], Vcat(2, Fill(3, ∞)))
55+
c = BlockedArray([1; 0; 2; zeros(∞)], Vcat(2, Fill(3, ∞)))
5656
@test c + c isa BlockedVector
57+
@test MemoryLayout(c) isa LazyArrays.PaddedColumns
58+
@test MemoryLayout(c[Block.(2:∞)]) isa LazyArrays.PaddedColumns
59+
@test c[Block.(2:∞)][Block(1)] == [2,0,0]
5760
end
5861

5962

0 commit comments

Comments
 (0)