Skip to content
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

Fix testresample.c output span; add exit code #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matt-har-vey
Copy link

Prior to this chance, the "Resample with different factors" test only passed for 60 of the 63 factors, with the 3 failing ones being the largest.

  1. Since only 63 distinct factors were being considered, 100 random samples was overkill.
  2. To support noticing failure in continuous build systems, it's nice if the test exit()s with nonzero when there are failures.
  3. The root cause was a formula error when determining which indices in the resampled output ought be compared. Details are explained in a comment.

Prior to this chance, the "Resample with different factors" test only
passed for 60 of the 63 factors, with the 3 failing ones being the
largest.

1. Since only 63 distinct factors were being considered, 100 random
   samples was overkill.
2. To support noticing failure in continuous build systems, it's nice if
   the test exit()s with nonzero when there are failures.
3. The root cause was a formula error when determining which indices in
   the resampled output ought be compared. Details are explained in a
   comment.
@emilazy emilazy mentioned this pull request Aug 20, 2024
@emilazy
Copy link
Contributor

emilazy commented Aug 25, 2024

@minorninth Just a ping to take a look at this; this PR would fix the testing machinery added in #8. If you could merge this and tag a 0.1.5 release on the GitHub repository it’d be great for us and other downstreams :)

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.

2 participants