Skip to content

Commit 3ae237f

Browse files
committed
Try to add a test that exercise partial decompress of non-contiguous.
1 parent f4d3039 commit 3ae237f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zarr/tests/test_core.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,3 +2443,9 @@ def test_hexdigest(self):
24432443
z = self.create_array(shape=(1050,), chunks=100, dtype='<i4')
24442444
z.attrs['foo'] = 'bar'
24452445
assert '05b0663ffe1785f38d3a459dec17e57a18f254af' == z.hexdigest()
2446+
2447+
def test_non_cont(self):
2448+
z = self.create_array(shape=(500,500, 500), chunks=(50, 50, 50), dtype='<i4')
2449+
z[:,:,:] = 0
2450+
# actually go through the partial read by accessing a single item
2451+
assert z[0,:,0].any()

0 commit comments

Comments
 (0)