You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,7 +83,7 @@ specialize this method if they need to provide custom block bounds checking beha
84
83
julia> A = BlockArray(rand(2,3), [1,1], [2,1]);
85
84
86
85
julia> blockcheckbounds(A, 3, 2)
87
-
ERROR: BlockBoundsError: attempt to access 2×2-blocked 2×3 BlockMatrix{Float64, Matrix{Matrix{Float64}}, Tuple{BlockedUnitRange{Vector{Int64}}, BlockedUnitRange{Vector{Int64}}}} at block index [3,2]
86
+
ERROR: BlockBoundsError: attempt to access 2×2-blocked 2×3 BlockMatrix{Float64} at block index [3,2]
Copy file name to clipboardExpand all lines: test/test_blockarrays.jl
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -429,15 +429,19 @@ end
429
429
end
430
430
431
431
@testset"string"begin
432
-
A =BlockArray(rand(4, 5), [1,3], [2,3]);
433
432
buf =IOBuffer()
434
-
Base.showerror(buf, BlockBoundsError(A, (3,2)))
435
-
@testString(take!(buf)) =="BlockBoundsError: attempt to access 2×2-blocked 4×5 BlockMatrix{Float64, Matrix{Matrix{Float64}}, Tuple{BlockedUnitRange{Vector{$Int}}, BlockedUnitRange{Vector{$Int}}}} at block index [3,2]"
433
+
A =BlockArray(rand(2,3), [1,1], [2,1]);
434
+
summary(buf, A)
435
+
s =String(take!(buf))
436
+
@test s ==summary(A)
436
437
438
+
A =BlockArray(rand(4, 5), [1,3], [2,3]);
439
+
Base.showerror(buf, BlockBoundsError(A, (3,2)))
440
+
@testString(take!(buf)) =="BlockBoundsError: attempt to access $(summary(A)) at block index [3,2]"
437
441
438
442
A =PseudoBlockArray(rand(4, 5), [1,3], [2,3]);
439
443
Base.showerror(buf, BlockBoundsError(A, (3,2)))
440
-
@testString(take!(buf)) =="BlockBoundsError: attempt to access 2×2-blocked 4×5 PseudoBlockMatrix{Float64, Matrix{Float64}, Tuple{BlockedUnitRange{Vector{$Int}}, BlockedUnitRange{Vector{$Int}}}} at block index [3,2]"
444
+
@testString(take!(buf)) =="BlockBoundsError: attempt to access $(summary(A)) at block index [3,2]"
0 commit comments