Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Smoke tests for statistical function output

Open
#167 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
testing

Research direction

Start by locating the existing tests or entry points for mean(), std(), and var(), then inspect how other statistical outputs are checked. Define basic smoke coverage for these three functions using either specific valued arrays or bounded comparisons, and confirm the test suite passes.

Written by the indexing model from the issue text.

Description

medium priority

Right now no output is tested at all for mean(), std(), and var(). But it would be nice to have some very basic smoke tests to ensure that at least the basic functionality is working.

Not sure what this should look like. If hypothesis is too hard we could just skip hypothesis and write some specific value tests for some nice valued arrays. Although it should be possible to just limit to values within reasonable ranges (to avoid floating-point issues) and check just the first few digits.

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

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.