Skip to content

Commit f6bcb9b

Browse files
committed
Fix more show tests
1 parent 43b000e commit f6bcb9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/sparsevector.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ end
6363
@test occursin("3.5", string(spv_x1))
6464

6565
# issue #30589
66-
@test repr("text/plain", sparse([true])) == "1-element SparseArrays.SparseVector{Bool, $Int} with 1 stored entry:\n [1] = 1"
66+
@test repr("text/plain", sparse([true])) == "1-element $(SparseArrays.SparseVector){Bool, $Int} with 1 stored entry:\n [1] = 1"
6767
end
6868

6969
### Comparison helper to ensure exact equality with internal structure
@@ -1424,14 +1424,14 @@ mutable struct t20488 end
14241424
@testset "show" begin
14251425
io = IOBuffer()
14261426
show(io, MIME"text/plain"(), sparsevec(Int64[1], [1.0]))
1427-
@test String(take!(io)) == "1-element SparseArrays.SparseVector{Float64, Int64} with 1 stored entry:\n [1] = 1.0"
1427+
@test String(take!(io)) == "1-element $(SparseArrays.SparseVector){Float64, Int64} with 1 stored entry:\n [1] = 1.0"
14281428
show(io, MIME"text/plain"(), spzeros(Float64, Int64, 2))
1429-
@test String(take!(io)) == "2-element SparseArrays.SparseVector{Float64, Int64} with 0 stored entries"
1429+
@test String(take!(io)) == "2-element $(SparseArrays.SparseVector){Float64, Int64} with 0 stored entries"
14301430
show(io, similar(sparsevec(rand(3) .+ 0.1), t20488))
14311431
@test String(take!(io)) == " [1] = #undef\n [2] = #undef\n [3] = #undef"
14321432
# Test that we don't introduce unnecessary padding for long sparse arrays
14331433
show(io, MIME"text/plain"(), SparseVector(div(typemax(Int32), 2), Int32[1], Int32[1]))
1434-
@test String(take!(io)) == "1073741823-element SparseArrays.SparseVector{Int32, Int32} with 1 stored entry:\n [1] = 1"
1434+
@test String(take!(io)) == "1073741823-element $(SparseArrays.SparseVector){Int32, Int32} with 1 stored entry:\n [1] = 1"
14351435
end
14361436

14371437
@testset "spzeros with index type" begin

0 commit comments

Comments
 (0)