diff --git a/test/common_interface/cvode.jl b/test/common_interface/cvode.jl index 726a8a4..dd331e0 100644 --- a/test/common_interface/cvode.jl +++ b/test/common_interface/cvode.jl @@ -57,10 +57,10 @@ sol_idxs = solve(prob, CVODE_Adams(), save_idxs = [1], timeseries_errors = false @test sol[1, :] == sol_idxs[1, :] -sol = solve(prob, CVODE_Adams(), save_idxs = [1, 2], timeseries_errors = false, calculate_error = false) -@test length(sol[1]) == 2 -@test sol[1, :] == sol[1, :] -@test sol[2, :] == sol[2, :] +sol_idxs = solve(prob, CVODE_Adams(), save_idxs = [1, 2], timeseries_errors = false, calculate_error = false) +@test length(sol_idxs[1]) == 2 +@test sol[1, :] == sol_idxs[1, :] +@test sol[2, :] == sol_idxs[2, :] # Test the other function conversions k = (du, u, p, t) -> du[1] = u[1]