Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,13 @@ end
@test_throws DimensionMismatch map(+, x2', x2)

# Issue https://github.com/JuliaArrays/FillArrays.jl/issues/179
@test map(() -> "ok") == "ok" # was MethodError: reducing over an empty collection is not allowed
@test mapreduce(() -> "ok", *) == "ok"
if VERSION < v"1.11.0-" # In 1.11, 1-arg map & mapreduce was removed
@test map(() -> "ok") == "ok" # was MethodError: reducing over an empty collection is not allowed
@test mapreduce(() -> "ok", *) == "ok"
else
@test_throws "no method matching map" map(() -> "ok")
@test_throws "no method matching map" mapreduce(() -> "ok", *)
end
end

@testset "mapreduce" begin
Expand Down