Test reflected operators?

Open
#460 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Start by locating the existing array API tests for division, floor division, and remainder operators, then inspect how other operator variants are covered. Add coverage for the reflected operators rtruediv, rfloordiv, and rmod; the work is done when implementations missing any of these methods fail the relevant tests.

Written by the indexing model from the issue text.

Description

The standard specifies that reflected operators must be defined, but AFAICT, there aren't tests here that cover them. I noticed because I removed __rtruediv__, __rfloordiv__, and __rmod__ from mparray while fixing division by zero issues, but but no tests failed as a result.

Dominant language
Python
Stars
74
Forks
54
Avg merge
4d 15h
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from data-apis/array-api-tests

All issues in data-apis/array-api-tests

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.