Skip to content

Commit

Permalink
adjust exception type in @test_throws
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Feb 1, 2025
1 parent 43ae489 commit 64a2d2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ end
@test_throws MethodError FSM(undef, 1, 1)
end
@testset "mismatched ndims" begin
@test_throws MethodError FSV{Int}(undef)
@test_throws MethodError FSV{Int}(undef, 1, 1)
@test_throws MethodError FSM{Int}(undef)
@test_throws MethodError FSM{Int}(undef, 1)
@test_throws DimensionMismatch FSV{Int}(undef)
@test_throws DimensionMismatch FSV{Int}(undef, 1, 1)
@test_throws DimensionMismatch FSM{Int}(undef)
@test_throws DimensionMismatch FSM{Int}(undef, 1)
end
for dim_count 0:4
siz = ntuple(Returns(2), dim_count)
Expand Down

0 comments on commit 64a2d2b

Please sign in to comment.