Skip to content

Commit

Permalink
Update reference data
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed Nov 12, 2024
1 parent 80f3ca6 commit e7b487e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e7b487e

Please sign in to comment.