library(pizzarr) test_that("zarr_create_empty", { z <- zarr_create_empty(100, chunks=10) shape <- z$get_shape() chunks <- z$get_chunks() expect_equal(shape, c(100)) expect_equal(chunks, c(10)) }) test_that("zarr_create_zeros", { z <- zarr_create_zeros(100, chunks=10) shape <- z$get_shape() chunks <- z$get_chunks() expect_equal(shape, c(100)) expect_equal(chunks, c(10)) }) test_that("zarr_create zero-dimensional", { a <- as_scalar(42) z <- zarr_create(shape=dim(a), dtype="