Skip to content

Commit

Permalink
fix test for sparse matrix assignment (#32756)
Browse files Browse the repository at this point in the history
(cherry picked from commit 30b3636)
  • Loading branch information
dkarrasch authored and KristofferC committed Aug 26, 2019
1 parent 1005051 commit be954d4
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 @@ -93,7 +93,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 be954d4

Please sign in to comment.