@@ -201,13 +201,9 @@ bview(a, b) = Base.invoke(view, Tuple{AbstractArray,Any}, a, b)
201201 @test blocks (V) == blocks (A)[1 : 1 ,1 : 2 ]
202202 @test blocks (W) == blocks (A)[1 : 2 ,1 : 1 ]
203203 Vi = parentindices (V)
204- @test sprint (show, " text/plain" , V) == " 1×3 view(::BlockMatrix{$Int , Matrix{Matrix{$Int }}, " *
205- " $(typeof (axes (A))) }, $(Vi[1 ]) , $(Vi[2 ]) ) " *
206- " with eltype $Int with indices $(axes (V,1 )) ×$(axes (V,2 )) :\n 1 │ 2 3"
204+ @test sprint (show, " text/plain" , V) == " $(summary (V)) :\n 1 │ 2 3"
207205 Wi = parentindices (W)
208- @test sprint (show, " text/plain" , W) == " 3×1 view(::BlockMatrix{$Int , Matrix{Matrix{$Int }}" *
209- " , $(typeof (axes (A))) }, $(Wi[1 ]) , $(Wi[2 ]) ) " *
210- " with eltype $Int with indices $(axes (W,1 )) ×$(axes (W,2 )) :\n 1\n ─\n 4\n 7"
206+ @test sprint (show, " text/plain" , W) == " $(summary (W)) :\n 1\n ─\n 4\n 7"
211207 end
212208
213209 @testset " getindex with BlockRange" begin
@@ -395,7 +391,7 @@ bview(a, b) = Base.invoke(view, Tuple{AbstractArray,Any}, a, b)
395391 end
396392 bl = BlockedLogicalIndex (BlockedVector ([true , true , false , false , true , false ], [3 , 3 ]))
397393 @test sprint (show, " text/plain" , bl) ==
398- " 2-blocked 3-element BlockedVector{Int64, Base.LogicalIndex{Int64, BlockedVector{Bool, Vector{Bool}, Tuple{BlockedOneTo{Int64, Vector{Int64}}}}}, Tuple{BlockedOneTo{Int64, Vector{Int64}}}} :\n 1\n 2\n ─\n 5"
394+ " $( summary (bl)) :\n 1\n 2\n ─\n 5"
399395 @test checkbounds (Bool, randn (6 ), bl)
400396 @test ! checkbounds (Bool, randn (5 ), bl)
401397 @test checkindex (Bool, 1 : 6 , bl)
0 commit comments