@@ -2188,22 +2188,22 @@ end
2188
2188
@test typeof (simA) == typeof (A)
2189
2189
@test size (simA) == (6 ,6 )
2190
2190
@test simA. colptr == fill (1 , 6 + 1 )
2191
- @test length (simA. rowval) == length (A . rowval)
2192
- @test length (simA. nzval) == length (A . nzval)
2191
+ @test length (simA. rowval) == 0
2192
+ @test length (simA. nzval) == 0
2193
2193
# test similar with entry type and Dims{2} specification (preserves storage space only)
2194
2194
simA = similar (A, Float32, (6 ,6 ))
2195
2195
@test typeof (simA) == SparseMatrixCSC{Float32,eltype (A. colptr)}
2196
2196
@test size (simA) == (6 ,6 )
2197
2197
@test simA. colptr == fill (1 , 6 + 1 )
2198
- @test length (simA. rowval) == length (A . rowval)
2199
- @test length (simA. nzval) == length (A . nzval)
2198
+ @test length (simA. rowval) == 0
2199
+ @test length (simA. nzval) == 0
2200
2200
# test similar with entry type, index type, and Dims{2} specification (preserves storage space only)
2201
2201
simA = similar (A, Float32, Int8, (6 ,6 ))
2202
2202
@test typeof (simA) == SparseMatrixCSC{Float32, Int8}
2203
2203
@test size (simA) == (6 ,6 )
2204
2204
@test simA. colptr == fill (1 , 6 + 1 )
2205
- @test length (simA. rowval) == length (A . rowval)
2206
- @test length (simA. nzval) == length (A . nzval)
2205
+ @test length (simA. rowval) == 0
2206
+ @test length (simA. nzval) == 0
2207
2207
# test similar with Dims{1} specification (preserves nothing)
2208
2208
simA = similar (A, (6 ,))
2209
2209
@test typeof (simA) == SparseVector{eltype (A. nzval),eltype (A. colptr)}
0 commit comments