Skip to content

Commit

Permalink
relax test for mapreduce_empty
Browse files Browse the repository at this point in the history
This test should accept whether or not someone makes this error
explicit.
  • Loading branch information
vtjnash authored Nov 3, 2023
1 parent bfc6326 commit 8702a2d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ Random.seed!(123)
@test middle(one(T)) === middle(one(T), one(T))
end

if VERSION < v"1.8.0-DEV.1343"
@test_throws ArgumentError middle(Int[])
else
@test_throws MethodError middle(Int[])
end
@test_throws Union{MethodError, ArgumentError} middle(Int[])
@test_throws ArgumentError middle(1:0)

@test middle(0:typemax(Int)) === typemax(Int) / 2
Expand Down

0 comments on commit 8702a2d

Please sign in to comment.