Skip to content

Commit 5669d63

Browse files
committed
Fix tests for SparseArrays
1 parent 3ceaaae commit 5669d63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/SparseArrays/test/higherorderfns.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ end
709709
@test extrema(f, x) == extrema(f, y)
710710
@test extrema(spzeros(n, n)) == (0.0, 0.0)
711711
@test extrema(spzeros(n)) == (0.0, 0.0)
712-
@test_throws ArgumentError extrema(spzeros(0, 0))
713-
@test_throws ArgumentError extrema(spzeros(0))
712+
@test_throws "reducing over an empty" extrema(spzeros(0, 0))
713+
@test_throws "reducing over an empty" extrema(spzeros(0))
714714
@test extrema(sparse(ones(n, n))) == (1.0, 1.0)
715715
@test extrema(sparse(ones(n))) == (1.0, 1.0)
716716
@test extrema(A; dims=:) == extrema(B; dims=:)

0 commit comments

Comments
 (0)