@@ -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
@@ -184,4 +184,15 @@ namespace xt
184184 auto h = create_zarr_hierarchy (" h_xtensor.zr2" , zarr_version);
185185 zarray z1 = h.create_array (" /arthur/dent" , shape, chunk_shape, " <f8" , ' C' , ' .' , xio_gzip_config (), attrs, pool_size, fill_value);
186186 }
187+
188+ TEST (xzarr_hierarchy, zarr_assign)
189+ {
190+ std::vector<size_t > shape = {4 , 4 };
191+ std::vector<size_t > chunk_shape = {2 , 2 };
192+ auto h1 = create_zarr_hierarchy (" src.zr3" );
193+ zarray z1 = h1.create_array (" /" , shape, chunk_shape, " <f8" , ' C' , ' .' , xio_gzip_config ());
194+ auto h2 = create_zarr_hierarchy (" dst.zr3" );
195+ zarray z2 = h2.create_array (" /" , shape, chunk_shape, " <f8" , ' C' , ' .' , xio_gzip_config ());
196+ z2 = z1;
197+ }
187198}
0 commit comments