Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@steppi
Copy link
Collaborator

@steppi steppi commented Apr 4, 2025

Previously, only one type overload was tested for each function. This PR adds tests for each overload that is tested in scipy special's tests. It also changes CI to use an out of source build, and makes adjustments to CMakeLists.txt to ensure target names for tests remain unique even if multiple subfolders in xsf/tests end up with test files with the same name.

Missing float overloads are added for chdtr and chdtrc. There are more missing overloads in xsf/stats.h but I've only added those needed to get all tests to pass. I've also added a little more wiggle room to the test tolerances. Now a test passes if the (extended) relative error is no more than 4x that allowed in the reference. There was one case for airy that was failing by a very small amount with a very tight tolerance. I'm trying to avoid situations where we find ourselves having to bump tolerances due to flaky tests.

@steppi steppi merged commit a0fd8aa into scipy:main Apr 4, 2025
1 check passed
@steppi steppi deleted the test_fix branch April 26, 2025 16:07
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