From 80f3ca6370221b683cb5ba398b6fdfc7b389f273 Mon Sep 17 00:00:00 2001 From: SatoshiTerasaki Date: Tue, 12 Nov 2024 13:46:10 +0900 Subject: [PATCH] Use all --- test/poly.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/poly.jl b/test/poly.jl index a7160fa..d6df7f0 100644 --- a/test/poly.jl +++ b/test/poly.jl @@ -165,10 +165,10 @@ isdefined(Main, :sve_logistic) || include("_conftest.jl") l = 3 pwlp = SparseIR.PiecewiseLegendrePoly(data, knots, l) - ∫pwlp, ∫pwlp_err = (0.4934184996836404, 8.326672684688674e-17) + ∫pwlp, ∫pwlp_err = (0.4934184996836403, 2.7755575615628914e-17) @test overlap(pwlp, identity) ≈ ∫pwlp - @test overlap(pwlp, identity, return_error=true) .≈ (∫pwlp, ∫pwlp_err) + @test all(overlap(pwlp, identity, return_error=true) .≈ (∫pwlp, ∫pwlp_err)) end @testset "roots(poly::PiecewiseLegendrePoly; tol=1e-10, alpha=Val(2))" begin