Skip to content

Commit f342bb9

Browse files
committed
add asserts to hypothesis tests
1 parent 9930e30 commit f342bb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/zarr/testing/strategies.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from zarr.core.sync import sync
2020
from zarr.storage import MemoryStore, StoreLike
2121
from zarr.storage._common import _dereference_path
22+
from zarr.storage._utils import normalize_path
2223

2324
# Copied from Xarray
2425
_attr_keys = st.text(st.characters(), min_size=1)
@@ -277,6 +278,8 @@ def arrays(
277278
if a.metadata.zarr_format == 3:
278279
assert a.fill_value is not None
279280
assert a.name is not None
281+
assert a.path == normalize_path(array_path)
282+
assert a.name == "/" + a.path
280283
assert isinstance(root[array_path], Array)
281284
assert nparray.shape == a.shape
282285
assert chunk_shape == a.chunks

0 commit comments

Comments
 (0)