Skip to content

Commit

Permalink
reenable test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Nov 15, 2023
1 parent 013373f commit 02c1d5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/NCDatasets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import CommonDataModel: AbstractDataset, AbstractVariable,
fillvalue, fill_and_missing_values,
scale_factor, add_offset, time_origin, time_factor,
CFtransformdata!,
CFVariable, variable, cfvariable, defVar,
CFVariable, variable, cfvariable, defVar, load!,
path, name, isopen, unlimited, dataset,
groupname, groupnames, group, defGroup,
dimnames, dim, defDim,
Expand Down
11 changes: 6 additions & 5 deletions test/test_variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Dates
using Printf
using NCDatasets
using DataStructures
#=

sz = (4,5)
filename = tempname()
#filename = "/tmp/test-6.nc"
Expand Down Expand Up @@ -224,7 +224,6 @@ ds.attrib["x_range"] = x
close(ds)
rm(filename)

=#
# issue 180
using NCDatasets

Expand All @@ -250,7 +249,6 @@ for data = sample_data
end
close(ds)

#=
# issue 207
filename_src = tempname()
ds_src = NCDataset(filename_src, "c")
Expand All @@ -270,11 +268,14 @@ close(ds_src)
close(ds_dest)

# issue 209
# broken
# maybe related to
# https://github.com/meggart/DiskArrays.jl/issues/131
filename_src = tempname()
ds = NCDataset(filename_src, "c")
data = [1,2,3]
ncv = defVar(ds,"data",data,("data",))
@test isempty(ncv[Int[]])
@test_broken isempty(ncv[Int[]])
close(ds)

# issue 211
Expand All @@ -289,4 +290,4 @@ data2 = zeros(Int,1)
data2 = zeros(Int,10)
# asking too many elements
@test_throws BoundsError NCDatasets.load!(ds["data"].var,data2,1:10)
=#

0 comments on commit 02c1d5d

Please sign in to comment.