Skip to content

Commit 0f4bd65

Browse files
committed
WIP
1 parent 0580097 commit 0f4bd65

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

array_api_tests/test_manipulation_functions.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,20 @@ def test_expand_dims(x, axis):
156156
raise
157157

158158

159+
@given(
160+
x=hh.arrays(dtype=hh.all_dtypes, shape=shared_shapes(max_dims=4)),
161+
axes=shared_shapes().flatmap(
162+
lambda s: st.lists(
163+
st.integers(2*(-len(s)-1), 2*len(s)),
164+
min_size=0 if len(s)==0 else 1,
165+
max_size=len(s)
166+
).map(tuple)
167+
)
168+
)
169+
def test_expand_dims_tuples(x, axes):
170+
print(x.shape, axes)
171+
172+
159173
@pytest.mark.min_version("2023.12")
160174
@given(x=hh.arrays(dtype=hh.all_dtypes, shape=hh.shapes(min_dims=1)), data=st.data())
161175
def test_moveaxis(x, data):

0 commit comments

Comments
 (0)