Skip to content

Commit

Permalink
Merge pull request #26 from davidbrochart/test_default_compressor
Browse files Browse the repository at this point in the history
Add test for create_array with default parameters
  • Loading branch information
davidbrochart committed Dec 15, 2020
2 parents fc5281d + 1b46849 commit fb9c4fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_zarr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,12 @@ namespace xt
auto h = create_zarr_hierarchy("h_xtensor.zr2", zarr_version);
zarray z1 = h.create_array("/arthur/dent", shape, chunk_shape, "<f8", 'C', '.', xio_gzip_config(), attrs, pool_size, fill_value);
}

TEST(xzarr_hierarchy, array_default_params)
{
std::vector<size_t> shape = {4, 4};
std::vector<size_t> chunk_shape = {2, 2};
auto h = create_zarr_hierarchy("test.zr3");
auto z = h.create_array("/foo", shape, chunk_shape);
}
}

0 comments on commit fb9c4fc

Please sign in to comment.