Skip to content

Commit

Permalink
cleanup test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Oct 9, 2024
1 parent 38c170a commit 65d4204
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/common_interface/cvode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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, :]

Expand Down
2 changes: 1 addition & 1 deletion test/common_interface/ida.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 65d4204

Please sign in to comment.