Skip to content

WIP: add a basic test of isin#407

Draft
ev-br wants to merge 3 commits intodata-apis:masterfrom
ev-br:test_isin
Draft

WIP: add a basic test of isin#407
ev-br wants to merge 3 commits intodata-apis:masterfrom
ev-br:test_isin

Conversation

@ev-br
Copy link
Member

@ev-br ev-br commented Jan 11, 2026

A 2025.12 proposed enhancement.

_funcs += ["take", "isdtype", "conj", "imag", "real"] # TODO: bump spec and update array-api-tests to new spec layout
_top_level_attrs = _dtypes + _constants + _funcs + stubs.EXTENSIONS + ["fft"]

_top_level_attrs += ['isin'] # FIXME: until the spec is not updated
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove before merging

*hh.two_mutual_arrays(two_shapes=st.tuples(hh.shapes(), hh.shapes())),
hh.kwargs(invert=st.booleans())
)
def test_isin(x1, x2, kw):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need @pytest.mark.min_version("2025.12")

)
def test_isin(x1, x2, kw):
print("\nx1 = ", type(x1))
print(x1.shape, x2.shape, x1.dtype, x2.dtype, kw)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug prints

ev-br added 2 commits January 11, 2026 15:53
1. int dtypes only
2. no restriction on x1,x2 shapes
@ev-br ev-br mentioned this pull request Feb 5, 2026
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant