From 7ee06b6373462431660ac63d9b906a9298ddb9a9 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Tue, 28 May 2024 12:12:28 +0200 Subject: [PATCH] test nc_get_var1 --- test/test_lowlevel.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_lowlevel.jl b/test/test_lowlevel.jl index 5acb21cb..ee0aac4b 100644 --- a/test/test_lowlevel.jl +++ b/test/test_lowlevel.jl @@ -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