Skip to content

Add testNoDataException test for TricubicInterpolatingFunction#316

Open
lmj798 wants to merge 1 commit intoapache:masterfrom
lmj798:master
Open

Add testNoDataException test for TricubicInterpolatingFunction#316
lmj798 wants to merge 1 commit intoapache:masterfrom
lmj798:master

Conversation

@lmj798
Copy link

@lmj798 lmj798 commented Mar 5, 2026

Summary

Add boundary test for TricubicInterpolatingFunction when input data arrays have zero length, verifying the NoDataException is thrown as expected.

Why

The current test suite covers precondition validation (non-monotonic sequences, dimension mismatches) and various interpolation scenarios (plane, quadric, wave functions), but does not explicitly test the edge case where all input data arrays are empty (zero-length). This boundary case is important to ensure robust error handling when no data is provided. Adding explicit tests improves behavioral stability and prevents potential regressions.

Verification

Ran mvn -Dtest=TricubicInterpolatingFunctionTest test
Result: all tests passed (5 tests)

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