@@ -2636,14 +2636,25 @@ def create_array(read_only=False, **kwargs):
2636
2636
partial_decompress = True ,
2637
2637
)
2638
2638
2639
+ def expected (self ):
2640
+ return [
2641
+ "94884f29b41b9beb8fc99ad7bf9c0cbf0f2ab3c9" ,
2642
+ "077aa3bd77b8d354f8f6c15dce5ae4f545788a72" ,
2643
+ "22be95d83c097460adb339d80b2d7fe19c513c16" ,
2644
+ "85131cec526fa46938fd2c4a6083a58ee11037ea" ,
2645
+ "c3167010c162c6198cb2bf3c1da2c46b047c69a1" ,
2646
+ ]
2647
+
2639
2648
def test_hexdigest (self ):
2649
+ found = []
2650
+
2640
2651
# Check basic 1-D array
2641
2652
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2642
- assert "f710da18d45d38d4aaf2afd7fb822fdd73d02957" == z .hexdigest ()
2653
+ found . append ( z .hexdigest () )
2643
2654
2644
2655
# Check basic 1-D array with different type
2645
2656
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<f4" )
2646
- assert "1437428e69754b1e1a38bd7fc9e43669577620db" == z .hexdigest ()
2657
+ found . append ( z .hexdigest () )
2647
2658
2648
2659
# Check basic 2-D array
2649
2660
z = self .create_array (
@@ -2654,17 +2665,19 @@ def test_hexdigest(self):
2654
2665
chunks = 10 ,
2655
2666
dtype = "<i4" ,
2656
2667
)
2657
- assert "6c530b6b9d73e108cc5ee7b6be3d552cc994bdbe" == z .hexdigest ()
2668
+ found . append ( z .hexdigest () )
2658
2669
2659
2670
# Check basic 1-D array with some data
2660
2671
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2661
2672
z [200 :400 ] = np .arange (200 , 400 , dtype = "i4" )
2662
- assert "4c0a76fb1222498e09dcd92f7f9221d6cea8b40e" == z .hexdigest ()
2673
+ found . append ( z .hexdigest () )
2663
2674
2664
2675
# Check basic 1-D array with attributes
2665
2676
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = "<i4" )
2666
2677
z .attrs ["foo" ] = "bar"
2667
- assert "05b0663ffe1785f38d3a459dec17e57a18f254af" == z .hexdigest ()
2678
+ found .append (z .hexdigest ())
2679
+
2680
+ assert self .expected () == found
2668
2681
2669
2682
def test_non_cont (self ):
2670
2683
z = self .create_array (shape = (500 , 500 , 500 ), chunks = (50 , 50 , 50 ), dtype = "<i4" )
0 commit comments