Skip to content

Commit fb9c4fc

Browse files
Merge pull request #26 from davidbrochart/test_default_compressor
Add test for create_array with default parameters
2 parents fc5281d + 1b46849 commit fb9c4fc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/test_zarr.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,12 @@ namespace xt
184184
auto h = create_zarr_hierarchy("h_xtensor.zr2", zarr_version);
185185
zarray z1 = h.create_array("/arthur/dent", shape, chunk_shape, "<f8", 'C', '.', xio_gzip_config(), attrs, pool_size, fill_value);
186186
}
187+
188+
TEST(xzarr_hierarchy, array_default_params)
189+
{
190+
std::vector<size_t> shape = {4, 4};
191+
std::vector<size_t> chunk_shape = {2, 2};
192+
auto h = create_zarr_hierarchy("test.zr3");
193+
auto z = h.create_array("/foo", shape, chunk_shape);
194+
}
187195
}

0 commit comments

Comments
 (0)