Skip to content

Commit 9b10944

Browse files
committed
Slightly better tests
1 parent 867dfa3 commit 9b10944

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_blockindices.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import BlockArrays: BlockIndex, BlockIndexRange, BlockSlice
44

55
@testset "Blocks" begin
66
@test Int(Block(2)) === Integer(Block(2)) === Number(Block(2)) === 2
7-
@test Tuple(Block(2, 2)) === (Block(2), Block(2))
7+
@test Tuple(Block(2,3)) === (Block(2),Block(3))
88
@test Block((Block(3), Block(4))) === Block(3,4)
99
@test Block() === Block(()) === Block{0}() === Block{0}(())
1010
@test Block(1) === Block((1,)) === Block{1}(1) === Block{1}((1,))
@@ -71,8 +71,8 @@ import BlockArrays: BlockIndex, BlockIndexRange, BlockSlice
7171

7272
@test convert(Int, Block(2)) == 2
7373
@test convert(Float64, Block(2)) == 2.0
74-
@test convert(Tuple, Block(2, 2)) == (Block(2), Block(2))
75-
@test convert(Tuple{Vararg{Int}}, Block(2, 2)) == (2, 2)
74+
@test convert(Tuple, Block(2,3)) == (Block(2),Block(3))
75+
@test convert(Tuple{Vararg{Int}}, Block(2,3)) == (2,3)
7676

7777
@test_throws MethodError convert(Int, Block(2,1))
7878
@test convert(Tuple{Int,Int}, Block(2,1)) == (2,1)

0 commit comments

Comments
 (0)