Skip to content

Commit

Permalink
Tests for #19611
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz committed Dec 15, 2016
1 parent e1ad722 commit 2a6a83d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/sparse/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1828,3 +1828,8 @@ let
@test_throws DimensionMismatch broadcast(+, A, B, speye(N))
@test_throws DimensionMismatch broadcast!(+, X, A, B, speye(N))
end

let A = sparse(Real[1 1])
@test (A + A)::SparseMatrixCSC{Int,Int} == [2 2] #19595
@test_throws DimensionMismatch A + A'
end

0 comments on commit 2a6a83d

Please sign in to comment.