Skip to content

Commit

Permalink
fix test for sparse matrix assignment (#32756)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch authored and andreasnoack committed Aug 1, 2019
1 parent 46c9a77 commit 30b3636
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stdlib/SparseArrays/test/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ do33 = fill(1.,3)
end

@testset "Issue #30006" begin
SparseMatrixCSC{Float64,Int32}(spzeros(3,3))[:, 1] == [1, 2, 3]
A = SparseMatrixCSC{Float64,Int32}(spzeros(3,3))
A[:, 1] = [1, 2, 3]
@test nnz(A) == 3
@test nonzeros(A) == [1, 2, 3]
end

@testset "concatenation tests" begin
Expand Down

0 comments on commit 30b3636

Please sign in to comment.