Skip to content

Commit a8a5ad0

Browse files
Sacha0JeffBezanson
authored andcommitted
Replace former error path tests for vectorized &, |, xor, min, and max over SparseMatrixCSCs with similar tests of sparse map.
1 parent a1cfc9c commit a8a5ad0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/sparse/sparse.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ do33 = ones(3)
3535
sqrfloatmat, colfloatmat = sprand(4, 4, 0.5), sprand(4, 1, 0.5)
3636
@test_throws DimensionMismatch (+)(sqrfloatmat, colfloatmat)
3737
@test_throws DimensionMismatch (-)(sqrfloatmat, colfloatmat)
38+
@test_throws DimensionMismatch map(min, sqrfloatmat, colfloatmat)
39+
@test_throws DimensionMismatch map(max, sqrfloatmat, colfloatmat)
40+
sqrboolmat, colboolmat = sprand(Bool, 4, 4, 0.5), sprand(Bool, 4, 1, 0.5)
41+
@test_throws DimensionMismatch map(&, sqrboolmat, colboolmat)
42+
@test_throws DimensionMismatch map(|, sqrboolmat, colboolmat)
43+
@test_throws DimensionMismatch map(xor, sqrboolmat, colboolmat)
3844
end
3945
end
4046

0 commit comments

Comments
 (0)