Skip to content

Commit

Permalink
print more info
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 8, 2023
1 parent ab7ea71 commit 6676040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ using HDF5, Test
@test keys(attrs(f)) == ["a", "b"]

# HDF5 error
println("HDF5 error")
@test_throws HDF5.API.H5Error HDF5.API.h5a_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
) do loc, name, info
Expand All @@ -47,6 +48,7 @@ using HDF5, Test
end
@test keys(attrs(f)) == ["a", "b"]

println("Julia error")
# Julia error
@test_throws AssertionError HDF5.API.h5a_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
Expand All @@ -55,7 +57,6 @@ using HDF5, Test
@assert false
end
@test keys(attrs(f)) == ["a", "b"]

end

@testset "h5l_iterate" begin
Expand Down

0 comments on commit 6676040

Please sign in to comment.