diff --git a/test/runtests.jl b/test/runtests.jl index fc098d9d..df7a15e4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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