From d3c5baeaf35e94433e3a5fd8075d0d3c15067f8b Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 14 Jul 2018 16:59:47 -0700 Subject: [PATCH] approximate --- test/constrained.jl | 4 ++-- test/unconstrained.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/constrained.jl b/test/constrained.jl index 2825a6f..4a7af22 100644 --- a/test/constrained.jl +++ b/test/constrained.jl @@ -20,7 +20,7 @@ dde_int = init(prob, alg; dt=0.1) sol2 = solve!(dde_int) - @test sol.t == sol2.t && sol.u == sol2[1, :] + @test sol.t ≈ sol2.t && sol.u ≈ sol2[1, :] ## In-place function prob = prob_dde_1delay @@ -46,7 +46,7 @@ dde_int = init(prob, alg; dt=0.1) sol2 = solve!(dde_int) - @test sol.t == sol2.t && sol.u == sol2[1, :] + @test sol.t ≈ sol2.t && sol.u ≈ sol2[1, :] ## In-place function prob = prob_dde_2delays diff --git a/test/unconstrained.jl b/test/unconstrained.jl index 485fed3..9dd9fce 100644 --- a/test/unconstrained.jl +++ b/test/unconstrained.jl @@ -30,7 +30,7 @@ prob = prob_dde_1delay_notinplace sol2 = solve(prob, alg) - @test sol.t == sol2.t && sol.u == sol2[1, :] + @test sol.t ≈ sol2.t && sol.u ≈ sol2[1, :] ### In-place function prob = prob_dde_1delay @@ -68,7 +68,7 @@ prob = prob_dde_2delays_notinplace sol2 = solve(prob, alg) - @test sol.t == sol2.t && sol.u == sol2[1, :] + @test sol.t ≈ sol2.t && sol.u ≈ sol2[1, :] ### In-place function prob = prob_dde_2delays