Skip to content

Commit 0051c4c

Browse files
committed
Tests
1 parent d1e74ff commit 0051c4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_blockindices.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import BlockArrays: BlockIndex, BlockIndexRange, BlockSlice
1919
@test ndims(B) == ndims(Block{1,Int}) == 0
2020
@test !isempty(B)
2121
@test collect(B) == [B]
22-
@test B .+ 1 == Block(4)
22+
@test B + 1 == Block(4)
2323
@test iterate(B) == (B, nothing)
2424
@test Int.(B) == 3
2525
end
@@ -84,6 +84,7 @@ import BlockArrays: BlockIndex, BlockIndexRange, BlockSlice
8484
end
8585

8686
@testset "BlockIndex" begin
87+
@test Block()[] == BlockIndex()
8788
@test Block(1)[1] == BlockIndex((1,),(1,))
8889
@test Block(1)[1:2] == BlockIndexRange(Block(1),(1:2,))
8990
@test Block(1,1)[1,1] == BlockIndex((1,1),(1,1)) == BlockIndex((1,1),(1,))

0 commit comments

Comments
 (0)