From 3b8e157e785b2917046826bddb926f5a8ffcdc80 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Mon, 30 Oct 2023 11:07:25 +0100 Subject: [PATCH] issue #235 --- src/dataset.jl | 1 - test/test_attrib.jl | 1 - test/test_simple.jl | 1 - 3 files changed, 3 deletions(-) diff --git a/src/dataset.jl b/src/dataset.jl index 51d68532..d84e2c3e 100644 --- a/src/dataset.jl +++ b/src/dataset.jl @@ -354,7 +354,6 @@ This example checks if the file `/tmp/test.nc` has a variable with the name `temperature` and a dimension with the name `lon`. """ Base.haskey(a::NCIterable,name::AbstractString) = name in keys(a) -Base.in(name::AbstractString,a::NCIterable) = name in keys(a) function dimnames(ds::AbstractNCDataset; parents = false) diff --git a/test/test_attrib.jl b/test/test_attrib.jl index f155b308..04e0ff31 100644 --- a/test/test_attrib.jl +++ b/test/test_attrib.jl @@ -20,7 +20,6 @@ NCDatasets.NCDataset(filename,"c") do ds # check presence of attribute @test NCDatasets.haskey(v.attrib,"comment") - @test "comment" in v.attrib @test v.attrib["long_name"] == "Temperature" @test v.attrib[:long_name] == "Temperature" @test v.attrib["test_vector_attrib"] == [1,2,3] diff --git a/test/test_simple.jl b/test/test_simple.jl index d1bf3367..ef3a0de0 100644 --- a/test/test_simple.jl +++ b/test/test_simple.jl @@ -85,7 +85,6 @@ ds = NCDataset(filename,"r") # check if a file has a variable with a given name @test haskey(ds,"temperature") -@test "temperature" in ds # get an list of all variable names @test "temperature" in keys(ds)