From e7b487e8202979059502c2723144f9839cdc33a7 Mon Sep 17 00:00:00 2001 From: SatoshiTerasaki Date: Tue, 12 Nov 2024 14:16:24 +0900 Subject: [PATCH] Update reference data --- test/poly.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/poly.jl b/test/poly.jl index d6df7f0..0d63e37 100644 --- a/test/poly.jl +++ b/test/poly.jl @@ -165,7 +165,12 @@ isdefined(Main, :sve_logistic) || include("_conftest.jl") l = 3 pwlp = SparseIR.PiecewiseLegendrePoly(data, knots, l) - ∫pwlp, ∫pwlp_err = (0.4934184996836403, 2.7755575615628914e-17) + if Sys.isapple() && Sys.ARCH === :aarch64 + # On macOS (arm64-apple-darwin22.4.0), we get + ∫pwlp, ∫pwlp_err = (0.4934184996836404, 8.326672684688674e-17) + else + ∫pwlp, ∫pwlp_err = (0.4934184996836403, 2.7755575615628914e-17) + end @test overlap(pwlp, identity) ≈ ∫pwlp @test all(overlap(pwlp, identity, return_error=true) .≈ (∫pwlp, ∫pwlp_err))