@@ -156,7 +156,7 @@ namespace xt
156156 " data/root/arthur/dent/c1/1" ,
157157 " data/root/arthur/dent/c2/0" ,
158158 " data/root/arthur/dent/c2/1" };
159- for (int i = 0 ; i < 6 ; i++)
159+ for (unsigned long int i = 0 ; i < 6 ; i++)
160160 {
161161 EXPECT_EQ (keys1[i], ref1[i]);
162162 }
@@ -165,7 +165,7 @@ namespace xt
165165 auto keys2 = s2.list ();
166166 std::string ref2[] = {" android.array.json" ,
167167 " paranoid.group.json" };
168- for (int i = 0 ; i < 2 ; i++)
168+ for (unsigned long int i = 0 ; i < 2 ; i++)
169169 {
170170 EXPECT_EQ (keys2[i], ref2[i]);
171171 // we don't have rights to erase objects in this bucket as an anonymous client
@@ -192,4 +192,15 @@ namespace xt
192192 auto h = create_zarr_hierarchy (" test.zr3" );
193193 auto z = h.create_array (" /foo" , shape, chunk_shape, " <f8" );
194194 }
195+
196+ TEST (xzarr_hierarchy, zarr_assign)
197+ {
198+ std::vector<size_t > shape = {4 , 4 };
199+ std::vector<size_t > chunk_shape = {2 , 2 };
200+ auto h1 = create_zarr_hierarchy (" src.zr3" );
201+ zarray z1 = h1.create_array (" /" , shape, chunk_shape, " <f8" );
202+ auto h2 = create_zarr_hierarchy (" dst.zr3" );
203+ zarray z2 = h2.create_array (" /" , shape, chunk_shape, " <f8" );
204+ z2 = z1;
205+ }
195206}
0 commit comments