Skip to content

Test reflected elementwise operators on arrays - #473

Open
Boulea7 wants to merge 1 commit into
data-apis:masterfrom
Boulea7:tests/reflected-array-operators-20261026-d1d7245
Open

Boulea7 wants to merge 1 commit into
data-apis:masterfrom
Boulea7:tests/reflected-array-operators-20261026-d1d7245

Conversation

@Boulea7

@Boulea7 Boulea7 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Adds array/array coverage for the reflected elementwise operators in #301. Compares a.__op__(b) and b.__rop__(a) for dtype, broadcast shape, and values, including 0-D arrays, while retaining the scalar cases.

Validated with array-api-strict 2.6.1 and NumPy 2.4.6: 60 new cases passed per backend, plus 170 related tests with 5 existing remainder skips. Meta-tests: 70 passed, 1 existing skip; flake8 passes. An isolated subtraction-order mutation passes the old scalar/forward checks and fails the new test.

This branch has not been deployed

No deployments
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