Skip to content

Commit

Permalink
accessing a netcdf variable with unlimited dimension produces a Bound…
Browse files Browse the repository at this point in the history
…sError rather than a generic NCDatasets.NetCDFError
  • Loading branch information
Alexander-Barth committed Mar 4, 2024
1 parent 72e5984 commit 332c846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_check_size.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ds["w"][:,1:15] = ones(10,15)
@test_throws DimensionMismatch ds["w"][:,:] = ones(11,15)

# NetCDF: Index exceeds dimension bound
@test_throws NCDatasets.NetCDFError ds["u"][100,100]
@test_throws Union{NCDatasets.NetCDFError,BoundsError} ds["u"][100,100]
close(ds)
rm(filename)

Expand Down

0 comments on commit 332c846

Please sign in to comment.