Skip to content

Commit

Permalink
test NCDatasets.nc_inq_filter_avail
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed May 28, 2024
1 parent 8778d8c commit 80430f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_lowlevel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,13 @@ if NCDatasets.netcdf_version() > v"4.9.0"
end

@test_throws ErrorException NCDatasets.nc_rc_get("does_not_exists")

# test NCDatasets.nc_inq_filter_avail

filename = tempname()
mode = NCDatasets.NC_CLOBBER
ncid = NCDatasets.nc_create(filename,mode)
id = 32015 # Zstandard
# Zstandard is not available for NetCDF 3 files
@test !NCDatasets.nc_inq_filter_avail(ncid,id)
NCDatasets.nc_close(ncid)

0 comments on commit 80430f7

Please sign in to comment.