Skip to content

Commit beb0226

Browse files
committed
Add complex_rectilinear_arrays strategy
1 parent c4df1ce commit beb0226

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/test_properties.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
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")

0 commit comments

Comments
 (0)