Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 6, 2023
1 parent 7847bd9 commit 6f4666b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/create_dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Test the combination of arguments to create_dataset.
ds = create_dataset(parent, name, type, space; chunk=(2, 2))
@test datatype(ds) == datatype(type)
if ds isa Dataspace
@test ds == dataspace(space)
@test dataspace(ds) == space
else
@test Dataspace(ds) == dataspace(space)
@test dataspace(ds) == Dataspace(space)
end
@test isvalid(ds)
close(ds)
Expand Down
4 changes: 2 additions & 2 deletions test/dataspace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ end

# Test mid-level routines: set/get_extent_dims

dspace_norm = dataspace((100, 4))
dspace_norm = Dataspace((100, 4))
@test HDF5.get_extent_dims(dspace_norm)[1] ==
HDF5.get_extent_dims(dspace_norm)[2] ==
(100, 4)
Expand All @@ -207,7 +207,7 @@ end
HDF5.get_extent_dims(dspace_norm)[2] ==
(8, 2)

dspace_maxd = dataspace((100, 4); max_dims=(256, 5))
dspace_maxd = Dataspace((100, 4); max_dims=(256, 5))
@test HDF5.get_extent_dims(dspace_maxd)[1] == (100, 4)
@test HDF5.get_extent_dims(dspace_maxd)[2] == (256, 5)
HDF5.set_extent_dims(dspace_maxd, (8, 2))
Expand Down

0 comments on commit 6f4666b

Please sign in to comment.