From 11852cbfac23fcb3fadfa8199b8a9078377f30f0 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Tue, 23 Apr 2024 21:44:10 +0200 Subject: [PATCH] Fix deprecations --- test/interface/parameters.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/interface/parameters.jl b/test/interface/parameters.jl index 68fee38..e23b7e6 100644 --- a/test/interface/parameters.jl +++ b/test/interface/parameters.jl @@ -24,12 +24,12 @@ h(p, t; idxs = nothing) = 0.1 sol1 = solve(prob, MethodOfSteps(Tsit5())) @test length(sol1) == 21 @test first(sol1(12))≈0.884 atol=1e-4 - @test first(sol1[end])≈1 atol=1e-5 + @test first(sol1.u[end])≈1 atol=1e-5 # solve problem with updated parameter prob.p[1] = 1.4 sol2 = solve(prob, MethodOfSteps(Tsit5())) @test length(sol2) == 47 @test first(sol2(12))≈1.125 atol=5e-4 - @test first(sol2[end])≈0.994 atol=2e-5 + @test first(sol2.u[end])≈0.994 atol=2e-5 end