We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dce8c1c commit 3e74bdeCopy full SHA for 3e74bde
test/initializers.jl
@@ -58,9 +58,9 @@ end
58
@test Base.typed_vcat(Union{}) isa Vector{Union{}}
59
@test Base.typed_hcat(Union{}) isa Vector{Union{}}
60
@test Base.typed_hvcat(Union{}, ()) isa Vector{Union{}}
61
-@test_throws MethodError Union{}[1]
62
-@test_throws MethodError Union{}[1 2]
63
-@test_throws MethodError Union{}[1; 2]
64
-@test_throws MethodError Union{}[1 2; 3 4]
+@test_throws Union{MethodError, ArgumentError} Union{}[1]
+@test_throws Union{MethodError, ArgumentError} Union{}[1 2]
+@test_throws Union{MethodError, ArgumentError} Union{}[1; 2]
+@test_throws Union{MethodError, ArgumentError} Union{}[1 2; 3 4]
65
66
end
0 commit comments