-
Notifications
You must be signed in to change notification settings - Fork 47
WIP: add a basic test of isin #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| _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 |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug prints
1. int dtypes only 2. no restriction on x1,x2 shapes
A 2025.12 proposed enhancement.