Skip to content

Commit

Permalink
Replace former error path tests for vectorized &, |, xor, min, and ma…
Browse files Browse the repository at this point in the history
…x over SparseMatrixCSCs with similar tests of sparse map.
  • Loading branch information
Sacha0 committed Dec 31, 2016
1 parent f488610 commit 14d27ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sparse/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ do33 = ones(3)
sqrfloatmat, colfloatmat = sprand(4, 4, 0.5), sprand(4, 1, 0.5)
@test_throws DimensionMismatch (+)(sqrfloatmat, colfloatmat)
@test_throws DimensionMismatch (-)(sqrfloatmat, colfloatmat)
@test_throws DimensionMismatch map(min, sqrfloatmat, colfloatmat)
@test_throws DimensionMismatch map(max, sqrfloatmat, colfloatmat)
sqrboolmat, colboolmat = sprand(Bool, 4, 4, 0.5), sprand(Bool, 4, 1, 0.5)
@test_throws DimensionMismatch map(&, sqrboolmat, colboolmat)
@test_throws DimensionMismatch map(|, sqrboolmat, colboolmat)
@test_throws DimensionMismatch map(xor, sqrboolmat, colboolmat)
end
end

Expand Down

0 comments on commit 14d27ed

Please sign in to comment.