Skip to content

Testing - Add unit tests for PLib functionality#705

Merged
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:plib_gtests
Sep 7, 2025
Merged

Testing - Add unit tests for PLib functionality#705
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:plib_gtests

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

@dpasukhi dpasukhi commented Sep 7, 2025

  • Introduced comprehensive unit tests for the Jacobi polynomial implementation in PLib, covering constructors, edge cases, Gauss integration points, weights, and basis function evaluations.
  • Added tests for basic utility functions in PLib, including pole conversion and binomial coefficient calculations.
  • Implemented checks for Hermite interpolation and polynomial evaluation with derivatives.
  • Enhanced error handling and edge case testing for small and large coefficients.
  • Initialized MaxError in PLib_DoubleJacobiPolynomial to ensure consistent behavior during degree reduction.

- Introduced comprehensive unit tests for the Jacobi polynomial implementation in PLib, covering constructors, edge cases, Gauss integration points, weights, and basis function evaluations.
- Added tests for basic utility functions in PLib, including pole conversion and binomial coefficient calculations.
- Implemented checks for Hermite interpolation and polynomial evaluation with derivatives.
- Enhanced error handling and edge case testing for small and large coefficients.
- Initialized MaxError in PLib_DoubleJacobiPolynomial to ensure consistent behavior during degree reduction.
@dpasukhi dpasukhi added this to the Release 8.0 milestone Sep 7, 2025
@dpasukhi dpasukhi requested a review from Copilot September 7, 2025 16:25
@dpasukhi dpasukhi self-assigned this Sep 7, 2025
@dpasukhi dpasukhi added 2. Enhancement New feature or request 1. Testing Updating of the DRAW/GTests or GH tests labels Sep 7, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive unit tests for the PLib (polynomial library) functionality in OCCT, testing various polynomial classes and utility functions. The PR introduces test coverage for Jacobi polynomials, Hermite-Jacobi polynomials, double Jacobi polynomials, and basic PLib utilities.

Key changes include:

  • Four new comprehensive test files covering different polynomial classes and utility functions
  • Initialization fix for MaxError in PLib_DoubleJacobiPolynomial to ensure consistent behavior
  • Updates to the build configuration to include the new test files

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/FoundationClasses/TKMath/PLib/PLib_DoubleJacobiPolynomial.cxx Adds MaxError initialization to prevent undefined behavior during degree reduction
src/FoundationClasses/TKMath/GTests/PLib_Test.cxx Comprehensive tests for basic PLib utility functions including pole conversion, binomial coefficients, and polynomial evaluation
src/FoundationClasses/TKMath/GTests/PLib_JacobiPolynomial_Test.cxx Tests for Jacobi polynomial implementation covering constructors, basis functions, and error estimation
src/FoundationClasses/TKMath/GTests/PLib_HermitJacobi_Test.cxx Tests for Hermite-Jacobi polynomials including derivative evaluations and coefficient conversion
src/FoundationClasses/TKMath/GTests/PLib_DoubleJacobiPolynomial_Test.cxx Tests for double Jacobi polynomials covering 2D polynomial operations and degree reduction
src/FoundationClasses/TKMath/GTests/FILES.cmake Updates build configuration to include the new test files

@dpasukhi dpasukhi merged commit 7fdd2b6 into Open-Cascade-SAS:IR Sep 7, 2025
23 checks passed
@dpasukhi dpasukhi deleted the plib_gtests branch September 7, 2025 18:17
@github-project-automation github-project-automation bot moved this from Todo to Done in Maintenance Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Testing Updating of the DRAW/GTests or GH tests 2. Enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants