Skip to content

Commit

Permalink
Remove single-argument map tests on nightly (#358)
Browse files Browse the repository at this point in the history
* Remove single-argument map tests on nightly

* Add comment on method removal

Co-authored-by: Frames White <[email protected]>

---------

Co-authored-by: Frames White <[email protected]>
  • Loading branch information
jishnub and oxinabox authored Apr 15, 2024
1 parent cc810ac commit 4c50186
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit 4c50186

Please sign in to comment.