From 65d4204c73f425b0f9ac6d2a696046542c6496b3 Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Wed, 9 Oct 2024 14:53:39 -0400 Subject: [PATCH] cleanup test warnings --- test/common_interface/cvode.jl | 4 ++-- test/common_interface/ida.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/common_interface/cvode.jl b/test/common_interface/cvode.jl index a40996c..a7b1e72 100644 --- a/test/common_interface/cvode.jl +++ b/test/common_interface/cvode.jl @@ -46,7 +46,7 @@ sol = solve(prob, CVODE_Adams(); saveat = saveat, save_everystep = false) @test sol.t == saveat for tstops in [0.9, [0.9]] - sol = solve(prob, CVODE_Adams(); tstops) + local sol = solve(prob, CVODE_Adams(); tstops) @test 0.9 ∈ sol.t end @@ -57,7 +57,7 @@ sol_idxs = solve(prob, CVODE_Adams(); save_idxs = [1], timeseries_errors = false sol_idxs = solve(prob, CVODE_Adams(); save_idxs = [1, 2], timeseries_errors = false, calculate_error = false) -@test length(sol_idxs[1]) == 2 +@test length(sol_idxs[:, 1]) == 2 @test sol[1, :] == sol_idxs[1, :] @test sol[2, :] == sol_idxs[2, :] diff --git a/test/common_interface/ida.jl b/test/common_interface/ida.jl index 7932c28..503e3ec 100644 --- a/test/common_interface/ida.jl +++ b/test/common_interface/ida.jl @@ -60,7 +60,7 @@ sol = solve(prob, IDA(); saveat = saveat, save_everystep = true) @test intersect(sol.t, saveat) == saveat @info "IDA with tstops" for tstops in [0.9, [0.9]] - sol = solve(prob, IDA(); tstops) + local sol = solve(prob, IDA(); tstops) @test 0.9 ∈ sol.t end