Skip to content

Commit

Permalink
Change use of @assert to explicitly throwing an AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Jun 3, 2024
1 parent 7ff46f5 commit 2866f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ using HDF5, Test
@test_throws AssertionError HDF5.API.h5a_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
) do loc, name, info
@assert false
throw(AssertionError("False is not true"))
end

# HDF5 error
Expand Down Expand Up @@ -100,7 +100,7 @@ end
@test_throws AssertionError HDF5.API.h5l_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
) do loc, name, info
@assert false
throw(AssertionError("False is not true"))
end
end

Expand Down

0 comments on commit 2866f4a

Please sign in to comment.