Skip to content

Commit

Permalink
test nc_get_var1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed May 28, 2024
1 parent 80430f7 commit 7ee06b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_lowlevel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ for sampledata in samples
NCDatasets.nc_get_vara!(ncid,varid,start,count,sampledata2)
@test sampledata == sampledata2

# test nc_get_var1
index = [1 for i in 1:ndims(sampledata)] .- 1
var1 = NCDatasets.nc_get_var1(T,ncid,varid,index)
@test first(sampledata) == var1

NCDatasets.nc_close(ncid)
end

Expand Down

0 comments on commit 7ee06b6

Please sign in to comment.