File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 array_metadata ,
2626 arrays ,
2727 basic_indices ,
28+ complex_rectilinear_arrays ,
2829 numpy_arrays ,
2930 orthogonal_indices ,
3031 rectilinear_arrays ,
@@ -143,6 +144,16 @@ async def test_basic_indexing(data: st.DataObject) -> None:
143144 # TODO test async setitem?
144145
145146
147+ @pytest .mark .asyncio
148+ @settings (deadline = None )
149+ @pytest .mark .filterwarnings ("ignore::zarr.core.dtype.common.UnstableSpecificationWarning" )
150+ @given (data = st .data ())
151+ async def test_basic_indexing_complex_rectilinear (data : st .DataObject ) -> None :
152+ nparray , zarray = data .draw (complex_rectilinear_arrays ())
153+ indexer = data .draw (basic_indices (shape = nparray .shape ))
154+ assert_array_equal (nparray [indexer ], zarray [indexer ])
155+
156+
146157@pytest .mark .asyncio
147158@given (data = st .data ())
148159@pytest .mark .filterwarnings ("ignore::zarr.core.dtype.common.UnstableSpecificationWarning" )
You can’t perform that action at this time.
0 commit comments