|
63 | 63 | @test occursin("3.5", string(spv_x1))
|
64 | 64 |
|
65 | 65 | # 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" |
67 | 67 | end
|
68 | 68 |
|
69 | 69 | ### Comparison helper to ensure exact equality with internal structure
|
@@ -1424,14 +1424,14 @@ mutable struct t20488 end
|
1424 | 1424 | @testset "show" begin
|
1425 | 1425 | io = IOBuffer()
|
1426 | 1426 | 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" |
1428 | 1428 | 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" |
1430 | 1430 | show(io, similar(sparsevec(rand(3) .+ 0.1), t20488))
|
1431 | 1431 | @test String(take!(io)) == " [1] = #undef\n [2] = #undef\n [3] = #undef"
|
1432 | 1432 | # Test that we don't introduce unnecessary padding for long sparse arrays
|
1433 | 1433 | 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" |
1435 | 1435 | end
|
1436 | 1436 |
|
1437 | 1437 | @testset "spzeros with index type" begin
|
|
0 commit comments