From 63cddc65eb38a146db6d8ef980326684886cf967 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Tue, 22 Apr 2025 06:53:00 -0400 Subject: [PATCH] Update events.jl for InternalITP changes Needed due to https://github.com/SciML/DiffEqBase.jl/pull/1137 --- test/integrators/events.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integrators/events.jl b/test/integrators/events.jl index 75d3807..8a16229 100644 --- a/test/integrators/events.jl +++ b/test/integrators/events.jl @@ -13,8 +13,8 @@ const alg = MethodOfSteps(Tsit5(); constrained = false) ts = findall(x -> x ≈ 2.6, sol1.t) @test length(ts) == 2 @test sol1.u[ts[1]] == -sol1.u[ts[2]] - @test sol1(prevfloat(2.6); - continuity = :right)≈-sol1(prevfloat(2.6); continuity = :left) atol=1e-5 + @test sol1(2.6; + continuity = :right)≈-sol1(2.6; continuity = :left) atol=1e-5 # fails on 32bit?! # see https://github.com/SciML/DelayDiffEq.jl/pull/180 @@ -23,8 +23,8 @@ const alg = MethodOfSteps(Tsit5(); constrained = false) ts = findall(x -> x ≈ 2.6, sol2.t) @test length(ts) == 2 @test sol2.u[ts[1]] == -sol2.u[ts[2]] - @test sol2(prevfloat(2.6); continuity = :right) ≈ - -sol2(prevfloat(2.6); continuity = :left) + @test sol2(2.6; continuity = :right) ≈ + -sol2(2.6; continuity = :left) sol3 = appxtrue(sol1, sol2) @test sol3.errors[:L2] < 1.5e-2