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