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 Jan 31, 2025
1 parent 7a59423 commit 1de7f6e
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 @@ -168,10 +168,10 @@ end

@testset "Constructors" begin
@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 1de7f6e

Please sign in to comment.