Skip to content

Commit

Permalink
add block array tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed May 1, 2024
1 parent 12a771b commit 6c44eb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1209,3 +1209,4 @@ end
end

include("test_infconv.jl")
include("test_block.jl")
10 changes: 10 additions & 0 deletions test/test_block.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using InfiniteArrays, BlockArrays
using InfiniteArrays: OneToInf

@testset "blockedonetoinf" begin
b = blockedrange(OneToInf())
b2 = b .+ b;
for i in 1:10
@test b2[Block(i)] == b[Block(i)] + b[Block(i)]
end
end

0 comments on commit 6c44eb4

Please sign in to comment.