Skip to content

Commit d0523ae

Browse files
authored
relax test for mapreduce_empty (#156)
This test should accept whether or not someone makes this error explicit.
1 parent d1c1c42 commit d0523ae

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/runtests.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ Random.seed!(123)
2222
@test middle(one(T)) === middle(one(T), one(T))
2323
end
2424

25-
if VERSION < v"1.8.0-DEV.1343"
26-
@test_throws ArgumentError middle(Int[])
27-
else
28-
@test_throws MethodError middle(Int[])
29-
end
25+
@test_throws Union{MethodError, ArgumentError} middle(Int[])
3026
@test_throws ArgumentError middle(1:0)
3127

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

0 commit comments

Comments
 (0)