Skip to content

Commit e46ad54

Browse files
committed
Update PartialRead hexdigest values
1 parent 7f1ba5e commit e46ad54

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

zarr/tests/test_core.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,14 +2636,25 @@ def create_array(read_only=False, **kwargs):
26362636
partial_decompress=True,
26372637
)
26382638

2639+
def expected(self):
2640+
return [
2641+
"94884f29b41b9beb8fc99ad7bf9c0cbf0f2ab3c9",
2642+
"077aa3bd77b8d354f8f6c15dce5ae4f545788a72",
2643+
"22be95d83c097460adb339d80b2d7fe19c513c16",
2644+
"85131cec526fa46938fd2c4a6083a58ee11037ea",
2645+
"c3167010c162c6198cb2bf3c1da2c46b047c69a1",
2646+
]
2647+
26392648
def test_hexdigest(self):
2649+
found = []
2650+
26402651
# Check basic 1-D array
26412652
z = self.create_array(shape=(1050,), chunks=100, dtype="<i4")
2642-
assert "f710da18d45d38d4aaf2afd7fb822fdd73d02957" == z.hexdigest()
2653+
found.append(z.hexdigest())
26432654

26442655
# Check basic 1-D array with different type
26452656
z = self.create_array(shape=(1050,), chunks=100, dtype="<f4")
2646-
assert "1437428e69754b1e1a38bd7fc9e43669577620db" == z.hexdigest()
2657+
found.append(z.hexdigest())
26472658

26482659
# Check basic 2-D array
26492660
z = self.create_array(
@@ -2654,17 +2665,19 @@ def test_hexdigest(self):
26542665
chunks=10,
26552666
dtype="<i4",
26562667
)
2657-
assert "6c530b6b9d73e108cc5ee7b6be3d552cc994bdbe" == z.hexdigest()
2668+
found.append(z.hexdigest())
26582669

26592670
# Check basic 1-D array with some data
26602671
z = self.create_array(shape=(1050,), chunks=100, dtype="<i4")
26612672
z[200:400] = np.arange(200, 400, dtype="i4")
2662-
assert "4c0a76fb1222498e09dcd92f7f9221d6cea8b40e" == z.hexdigest()
2673+
found.append(z.hexdigest())
26632674

26642675
# Check basic 1-D array with attributes
26652676
z = self.create_array(shape=(1050,), chunks=100, dtype="<i4")
26662677
z.attrs["foo"] = "bar"
2667-
assert "05b0663ffe1785f38d3a459dec17e57a18f254af" == z.hexdigest()
2678+
found.append(z.hexdigest())
2679+
2680+
assert self.expected() == found
26682681

26692682
def test_non_cont(self):
26702683
z = self.create_array(shape=(500, 500, 500), chunks=(50, 50, 50), dtype="<i4")

0 commit comments

Comments
 (0)