Skip to content

Commit

Permalink
Merge pull request #95 from nsajko/test_for_undef_constructor_ndims_m…
Browse files Browse the repository at this point in the history
…ismatch

test for ndims mismatch in `undef`-taking constructor methods
  • Loading branch information
oscardssmith authored Jan 31, 2025
2 parents d17373e + dcb57a5 commit ffb5004
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ end
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)
end
for dim_count 0:4
siz = ntuple(Returns(2), dim_count)
T = FSA{Float64}
Expand Down

0 comments on commit ffb5004

Please sign in to comment.