Skip to content

Commit

Permalink
Use ≈ (isapprox)
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed Nov 12, 2024
1 parent 9f317a4 commit 6a2d067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a2d067

Please sign in to comment.