Skip to content

Commit dd07edb

Browse files
Merge pull request #2687 from hersle/test_methoderror_boundserror
Test Union{MethodError, BoundsError}
2 parents 5509482 + 0eaf144 commit dd07edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/interface/inplace_interpolation.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ out_VMF = vecarrzero(ntt, size(prob_ode_2Dlinear.u0)) # Vector{Matrix{Float64}
2222
sol_ODE_2D_interp = @inferred sol_ODE_2D(tt)
2323

2424
@testset "1D" begin
25-
@test_throws MethodError sol_ODE(out_VF, tt; idxs = 1:1)
25+
@test_throws Union{MethodError, BoundsError} sol_ODE(out_VF, tt; idxs = 1:1)
2626
@inferred Vector{Float64} sol_ODE(out_VF, tt)
2727
@inferred Vector{Vector{Float64}} sol_ODE(out_VVF_1, tt)
2828
@test sol_ODE_interp.u out_VF
2929
end
3030

3131
@testset "2D" begin
32-
@test_throws MethodError sol_ODE_2D(out_VF, tt; idxs = 3:3)
32+
@test_throws Union{MethodError, BoundsError} sol_ODE_2D(out_VF, tt; idxs = 3:3)
3333
@inferred Vector{Float64} sol_ODE_2D(out_VF, tt; idxs = 3)
3434
@inferred Vector{Vector{Float64}} sol_ODE_2D(out_VVF_1, tt; idxs = 3)
3535
@inferred Vector{Vector{Float64}} sol_ODE_2D(out_VVF_1, tt; idxs = 3:3)

0 commit comments

Comments
 (0)