From 6a2d0679d941f8505abae98df82ee67ffc6fdbd5 Mon Sep 17 00:00:00 2001 From: SatoshiTerasaki Date: Tue, 12 Nov 2024 13:28:02 +0900 Subject: [PATCH] =?UTF-8?q?Use=20=E2=89=88=20(isapprox)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/poly.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/poly.jl b/test/poly.jl index c5f4796..aed27f3 100644 --- a/test/poly.jl +++ b/test/poly.jl @@ -166,8 +166,8 @@ isdefined(Main, :sve_logistic) || include("_conftest.jl") ∫pwlp, ∫pwlp_err = (0.4934184996836404, 8.326672684688674e-17) - @test overlap(pwlp, identity) == ∫pwlp - @test overlap(pwlp, identity, return_error=true) == (∫pwlp, ∫pwlp_err) + @test overlap(pwlp, identity) ≈ ∫pwlp + @test overlap(pwlp, identity, return_error=true) .≈ (∫pwlp, ∫pwlp_err) end @testset "roots(poly::PiecewiseLegendrePoly; tol=1e-10, alpha=Val(2))" begin