Skip to content

Commit 4f0145b

Browse files
authored
missing error throwing test for findmin/findmax (#37786)
1 parent fec672d commit 4f0145b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/SparseArrays/test/sparse.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,9 @@ end
13061306
for region in [(1,), (2,), (1,2)], m in [findmax, findmin]
13071307
@test m(S, dims=region) == m(A, dims=region)
13081308
end
1309-
1309+
for m in [findmax, findmin]
1310+
@test_throws ArgumentError m(S, (4, 3))
1311+
end
13101312
S = spzeros(10,8)
13111313
A = Array(S)
13121314
@test argmax(S) == argmax(A) == CartesianIndex(1,1)

0 commit comments

Comments
 (0)