Skip to content

Commit 074293b

Browse files
committed
Update test_misc.jl
1 parent eb53051 commit 074293b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_misc.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,18 @@ end
160160
@testset "Block-BandedMatrix" begin
161161
a = blockedrange(1:5)
162162
B = _BandedMatrix(PseudoBlockArray(randn(5,length(a)),(Base.OneTo(5),a)), a, 3, 1)
163-
@test blockcolsupport(B,1) == Block.(1:3)
164-
@test blockcolsupport(B,3) == Block.(2:4)
165-
@test blockrowsupport(B,1) == Block.(1:2)
166-
@test blockrowsupport(B,4) == Block.(3:5)
163+
@test blockcolsupport(B,Block(1)) == Block.(1:3)
164+
@test blockcolsupport(B,Block(3)) == Block.(2:4)
165+
@test blockrowsupport(B,Block(1)) == Block.(1:2)
166+
@test blockrowsupport(B,Block(4)) == Block.(3:5)
167167

168168
Q = Eye((a,))[:,Block(2)]
169169
@test Q isa BandedMatrix
170-
@test blockcolsupport(Q,1) == Block.(2:2)
170+
@test blockcolsupport(Q,Block(1)) == Block.(2:2)
171171

172172
Q = Eye((a,))[Block(2),:]
173173
@test Q isa BandedMatrix
174-
@test blockrowsupport(Q,1) == Block.(2:2)
174+
@test blockrowsupport(Q,Block(1)) == Block.(2:2)
175175

176176
@testset "constant blocks" begin
177177
a = blockedrange(Fill(2,5))

0 commit comments

Comments
 (0)