Skip to content

Commit

Permalink
Update test_infblock.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Dec 18, 2024
1 parent 9a5cfab commit ffd2950
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_infblock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ const BlockTriPertToeplitz = InfiniteArraysBlockArraysExt.BlockTriPertToeplitz
end

@testset "padded" begin
c = BlockedArray([1; zeros(∞)], Vcat(2, Fill(3, ∞)))
c = BlockedArray([1; 0; 2; zeros(∞)], Vcat(2, Fill(3, ∞)))
@test c + c isa BlockedVector
@test MemoryLayout(c) isa LazyArrays.PaddedColumns
@test MemoryLayout(c[Block.(2:∞)]) isa LazyArrays.PaddedColumns
@test c[Block.(2:∞)][Block(1)] == [2,0,0]
end


Expand Down

0 comments on commit ffd2950

Please sign in to comment.