Skip to content

Simplify curve tests around reference implementations#41

Merged
alexshtf merged 1 commit intomasterfrom
tests_use_numpy_scipy_as_ref
Feb 11, 2026
Merged

Simplify curve tests around reference implementations#41
alexshtf merged 1 commit intomasterfrom
tests_use_numpy_scipy_as_ref

Conversation

@alexshtf
Copy link
Owner

@alexshtf alexshtf commented Feb 11, 2026

Refactor tests/test_bspline.py and tests/test_legendre.py to be shorter and easier to reason about:

  • compare single-curve / single-sample results against SciPy/NumPy references
  • verify batched behavior by explicit concatenation of single-single evaluations across batch and curve dimensions
  • remove hard-coded expected numeric arrays and complex case-by-case fixtures

Refactor `tests/test_bspline.py` and `tests/test_legendre.py` to be shorter
and easier to reason about:
- compare single-curve / single-sample results against SciPy/NumPy references
- verify batched behavior by explicit concatenation of single-single evaluations
  across batch and curve dimensions
- remove hard-coded expected numeric arrays and complex case-by-case fixtures

Make SciPy a normal test dependency by adding it to the `dev` group and update
`uv.lock` accordingly.
@alexshtf alexshtf merged commit d45553e into master Feb 11, 2026
10 checks passed
@alexshtf alexshtf deleted the tests_use_numpy_scipy_as_ref branch February 11, 2026 20:22
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