27 Commits

Author SHA1 Message Date
Jukka Aho b540c62334 test(basis): load JuliaFEM in type-stability regression
Inference-sensitive helpers belong behind the public module boundary so changes to
includes do not silently widen types in CI.

- Switch to `using JuliaFEM` after removing relative includes.
2026-05-09 18:44:05 +03:00
Jukka Aho f5ff185741 test(basis): load JuliaFEM in SVector return-shape checks
Static-array return paths depend on the same generated helpers as production code;
tests should import the package rather than cherry-picking sources.

- Drop manual topology/basis includes.
2026-05-09 18:43:57 +03:00
Jukka Aho 3dac8325e7 test(basis): load JuliaFEM in PoU regression
Partition-of-unity constraints must hold for the generated tables JuliaFEM ships,
not a parallel copy pulled via relative paths.

- Replace includes with `using JuliaFEM`.
2026-05-09 18:43:49 +03:00
Jukka Aho 469fe2ea4a test(basis): load JuliaFEM in numerical-accuracy suite
Numerical tolerances are meaningful only when they target the shipped basis
implementation and quadrature pairing.

- Import `JuliaFEM` instead of stitching topology files manually.
2026-05-09 18:43:43 +03:00
Jukka Aho f67ec02006 test(basis): load JuliaFEM in Kronecker-delta checks
Kronecker tests should exercise exported Lagrange evaluation helpers together with
topology types from the package root.

- Swap fragile src includes for `using JuliaFEM`.
2026-05-09 18:43:32 +03:00
Jukka Aho 9a3d7038ef test(basis): load JuliaFEM in interpolation regression
Interpolation tests should respect manifest exports and initialization order from
the main module.

- Remove duplicated topology/basis includes; import `JuliaFEM` instead.
2026-05-09 18:43:17 +03:00
Jukka Aho fb3056e513 test(basis): load JuliaFEM in gradient property checks
Ensure gradient identities run against the same API users import, not a bespoke
subset of source files.

- Replace relative includes with `using JuliaFEM`.
2026-05-09 18:43:14 +03:00
Jukka Aho 094e2a1dc5 test(basis): load JuliaFEM in derivative regression
Align derivative checks with the packaged basis/topology stack instead of
partially re-including `src/` fragments.

- Drop manual `include("../../src/...")` bootstrapping in favor of `using JuliaFEM`.
2026-05-09 18:43:13 +03:00
Jukka Aho 0bd4580c00 test(basis): load JuliaFEM in partition-of-unity sweep
Basis regression files used to `include` topology and generated basis sources
directly from `../../src`, which drifted from package exports and hid missing
wiring until CI.

- Replace the relative `include` chain with `using JuliaFEM` so tests hit the
  real module surface (`Lagrange{P}`, parametrized topologies, generated tables).
2026-05-09 18:43:04 +03:00
Jukka Aho 1e1a08d4db test(basis): extend runner for Piola and quadrature hooks
Import `JuliaFEM` in the topic runner and include new Piola/Nedelec,
integration-basis quadrature, and basis-description regressions.

- Reorder derivative/type-stability includes after adding coverage files.
2026-05-09 18:41:05 +03:00
Jukka Aho ded9c943d1 test(basis): add Piola/Nedelec reference basis smoke tests 2026-05-09 18:37:54 +03:00
Jukka Aho d4fecf763a test(basis): add integration_points topology×basis tests 2026-05-09 18:37:54 +03:00
Jukka Aho 067e32c60a test(basis): add basis metadata description tests 2026-05-09 18:37:54 +03:00
Jukka Aho 2b40c26179 chore(test): delete nbasis zero-cost regression
Remove the standalone `@generated` nbasis cost test file no longer wired into CI.

- Drop `test/basis/test_nbasis_zerocost.jl`.
2026-05-09 18:25:05 +03:00
Jukka Aho 3e89dd5491 chore(test): drop retired basis API regression
Remove stale basis API tests superseded by `test_all_elements` coverage.

- Delete `test/basis/test_basis_api.jl`.
2026-05-09 18:24:59 +03:00
Jukka Aho b44f7b6d89 test(basis): add zero-cost basis test
Tests zero-allocation basis function evaluation.
Validates performance characteristics of basis functions.
2025-12-15 07:46:36 +02:00
Jukka Aho 41387bd1b2 test(basis): add basis API test
Tests basis function API interface.
Validates get_basis_functions and get_basis_derivatives.
2025-12-15 07:46:33 +02:00
Jukka Aho 8adfb0802f test(basis): add runtests.jl
Test suite organizer for basis module.
Includes all basis function tests: partition of unity, derivatives,
interpolation, type stability, numerical accuracy, etc.
2025-12-15 07:43:23 +02:00
Jukka Aho dd7cff1ce5 test(basis): add test_gradient_properties test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:29 +02:00
Jukka Aho f3861b4f84 test(basis): add test_numerical_accuracy test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:29 +02:00
Jukka Aho a3e31dd4b1 test(basis): add test_type_stability test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:29 +02:00
Jukka Aho cba43d24dc test(basis): add test_kronecker_delta test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:29 +02:00
Jukka Aho db3106547c test(basis): add test_all_elements test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:29 +02:00
Jukka Aho 764047cce0 test(basis): add test_interpolation test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:29 +02:00
Jukka Aho a0030d4531 test(basis): add test_derivatives test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:28 +02:00
Jukka Aho 48e1874dff test(basis): add test_svector_returns test
Test file included in test/basis/runtests.jl
2025-12-15 06:32:28 +02:00
Jukka Aho 2f972c1106 test(basis): add partition of unity test
New 31-line test for partition of unity property:
- Tests that sum of basis functions equals 1.0
- Covers Seg2, Tri3, Quad4 elements
- Included in test/basis/runtests.jl
- Validates fundamental basis function property

Ensures basis functions satisfy partition of unity requirement.
2025-12-15 06:32:21 +02:00