Skip to content

test: refactor benchmark and test files for Cauchy median using fixtures #7719

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

satyajeetch1991
Copy link
Contributor

Refactor benchmark and test files to use fixtures and consistent RNG.

Fixes #5902

Description

What is the purpose of this pull request?

This pull request refactors the benchmark and native test files for the Cauchy distribution median function. The updates include:

  • Using fixture data from a JSON file for tests
  • Ensuring consistent random number generation in benchmarks
  • Improving code readability and maintainability
  • Aligning with project standards and guidelines

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No additional information.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Needs Review A pull request which needs code review. labels Jul 22, 2025
@stdlib-bot
Copy link
Contributor

stdlib-bot commented Jul 22, 2025

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/levy/median $\color{green}182/182$
$\color{green}+100.00\%$
$\color{green}9/9$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}182/182$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

@stdlib-bot stdlib-bot added the Good First PR A pull request resolving a Good First Issue. label Jul 22, 2025
@satyajeetch1991 satyajeetch1991 changed the title Refactor benchmark and test files to use fixtures and consistent RNG. Fixes #5902 test: refactor benchmark and test files for Cauchy median using fixtures Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. Statistics Issue or pull request related to statistical functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Address commit comments (commit b790b70)
2 participants