From d4fecf763a48d02a81d9bae7502930f23deea2bc Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 18:37:54 +0300 Subject: [PATCH] =?UTF-8?q?test(basis):=20add=20integration=5Fpoints=20top?= =?UTF-8?q?ology=C3=97basis=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basis/test_integration_basis_quadrature.jl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/basis/test_integration_basis_quadrature.jl diff --git a/test/basis/test_integration_basis_quadrature.jl b/test/basis/test_integration_basis_quadrature.jl new file mode 100644 index 0000000..0622e1e --- /dev/null +++ b/test/basis/test_integration_basis_quadrature.jl @@ -0,0 +1,18 @@ +# This file is a part of JuliaFEM. +# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md + +using Test +using JuliaFEM + +@testset "integration_points(topology, basis) tracks basis order" begin + ips_l1 = integration_points(Tet4(), Lagrange{1}()) + ips_l2 = integration_points(Tet4(), Lagrange{2}()) + @test length(ips_l2) > length(ips_l1) + @test basis_quadrature_order(Lagrange{2}()) == 2 +end + +@testset "topology-only integration matches Lagrange{1} basis on Tet4" begin + ips_topo = integration_points(Tet4()) + ips_b = integration_points(Tet4(), Lagrange{1}()) + @test length(ips_topo) == length(ips_b) +end